Comments (6)
Have you tried changing the line-height? This may have something to do with the current font-size and line-height of the icon's parent element.
from fontcustom.
Not a line-height thing. After comparing the font I generated to the one on the fontcustom homepage (and a system font to use as a baseline):
...It seems pretty clear that it's an issue with either my SVG files, or the compiler. Any chance you could share the file you used to create your fonts? That way I could compile it locally to try and pinpoint where the issue is.
from fontcustom.
I think this may have something to do with the ascent and descent of the generated glyphs. We actually had some issues with this as well since we were transitioning to use fontcustom from icomoon, where the ascent and descent are modified based on an svg size of 512 and base font size of 16. Fontcustom's generated svg is set at 1000 and the ascent and descent are default. This means whitespace is 0 on the horizontal of the glyph and the glyph will reside on the baseline, NOT at the descender of the font.
The font-forge API has options you can pass, namely fontforge.font().ascent and fontforge.font().descent. Would be nice to include some options to set custom ascender/descender? ...because we had to modify generate.py which is less than ideal ;)
from fontcustom.
Ascent and descent have been tweaked in 1.0.0.pre — made a bit difference in my tests. @matthewferry I'll add a new issue for your options suggestion.
from fontcustom.
Nice! Thanks @EZYZ
from fontcustom.
Has this issue been resolved? I'm trying to set all icons to a consistent baseline no matter their width and can't figure out what to set the font_ascent and font_descent in fontcustom.yml. Thanks.
from fontcustom.
Related Issues (20)
- Error: Invalid formula HOT 1
- Ability to specify path to manifest.json
- Loosen json dependency requirement HOT 3
- why mention sfnt2woff license? HOT 1
- copyright mention clarifications HOT 1
- `set_glyph_info': undefined method `values'
- Font metrics for chrome browser on mac HOT 2
- Fontcustom doesn't work after upgrading to Catalina HOT 3
- Fontcustom not working after Catalina OS upgrade HOT 3
- `brew install fontforge --with-python` fails with `Error: invalid option: --with-python` HOT 3
- fontforge compilation failed HOT 2
- Overlapping paths rendered incorrectly
- fontcustom
- in `initialize': wrong number of arguments (given 2, expected 1) HOT 7
- Is the project still alive? HOT 4
- `fontforge` compilation failed. 'float' object cannot be interpreted as an integer. HOT 7
- The future of FontCustom HOT 6
- /usr/local/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/lib/fontcustom/options.rb:50:in `set_config_path': undefined method `exists?' for File:Class (NoMethodError) if File.exists? "fontcustom.yml" HOT 1
- [Bug] Fontcustom doesn't find woff2_compress on Windows despite it being installed an in PATH.
- How to specify the Unicode encoding that specifies each icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fontcustom.