Add config option for fonts directory
See original GitHub issueFirst of all this really an awesome tool, that I have been searching for a long time. I love the node CLI tool it’s perfect how you guys have thought of everything to make life easier for many lazy developers like me.
In order to support even more lazy developers like me, I would like to request a config option to specify the font files directory.
For example currently:
@font-face {
font-family: 'icons';
src: url('../font/icons.eot?87713699');
src: url('../font/icons.eot?87713699#iefix') format('embedded-opentype'),
url('../font/icons.woff?87713699') format('woff'),
url('../font/icons.ttf?87713699') format('truetype'),
url('../font/icons.svg?87713699#icons') format('svg');
font-weight: normal;
font-style: normal;
}
I would like the ability to specify the ../font
from a config or CLI option. That way when I download I am able to set a prefix to start with. If one is not provided it would just add ../font
to keep it backward compatible.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Installing fonts - X.Org
Fontconfig looks for fonts in a set of well-known directories that include all of ... Another useful option is the ability to disable...
Read more >Add an extra font for all users
Copy the font to the /usr/local/share/fonts/ directory to install it. · You may need to run the following command to update the font...
Read more >fonts-conf - Freedesktop.org
Fontconfig is a library designed to provide system-wide font ... is to add fonts and directories to the list of application-provided font files....
Read more >config.rb for SASS fonts directory path adding slash
Here is a sample config example to work on relative assets. ... You can set http_fonts_path = "fonts" right after path setting in...
Read more >Add custom fonts to a theme - HubSpot Developers
A fonts folder that contain the custom font files and font.json config file. This folder and its contents can be named and structured...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@puzrin Sorry but you did not really answer my question.
My problem is not extracting and moving the files around. My problem is editing that relative paths inside of the css file.
Lets say I use fontello-cli with
--font ./myfontsdir --css ./mycss
, then the url() directives in the css file still point to../font/
, even tough the files are now in./myfontsdir
.Fontello’s API has no goal to do anything people can imagine. It’s goal is to provide full data for post-processing (if someone is not satisfied with defaults). You can write simple script to unpack downloaded file, move fonts to another place and create css/stylus/sass file from
config.json
. I think that’s not very difficult for github users.