question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add config option for fonts directory

See original GitHub issue

First 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:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
domrufcommented, Dec 28, 2017

@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.

2reactions
puzrincommented, Jan 1, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found