Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions with stylistic set #209

Closed
antonluht opened this issue Nov 28, 2018 · 2 comments
Closed

Build instructions with stylistic set #209

antonluht opened this issue Nov 28, 2018 · 2 comments

Comments

@antonluht
Copy link

antonluht commented Nov 28, 2018

First of all - thanks a lot for wonderful modern font. I was happy to find it and now experimenting with it in various environments. I'm sorry if I ask too noob questions - I tried to find answers myself but haven't succeeded.

My question is - how to build OTF font with non-default stylistic set - I want to play with 'zero' and 'ss07' but I don't know not to get font with them.

My environment is: Ubuntu 18.04 + freetype 2.9.1

I have downloaded font sources (revision db2f28e 'Added installation instruction for archlinux')
and tried to build them. Resulted TTF fonts were broken but then I found that latest makeotf is broken (adobe-type-tools/afdko#680 ) - I switched to makeof version v2.5.0 Aug 28 2018 and could build TTF fonts successfully.

In Linus apps (terminal and gedit) ttf and otf fonts (size 11) look different to me, while in IntelliJ idea they look the same.

I like spacing of OTF fonts but I don't know how to add stylistic set to them - instructions in #126 say only about TTF fonts.

I succeeded to make set 'zero' and 'ss07' stylistic sets as default through https://www.fontsquirrel.com/tools/webfont-generator but spacing still didn't look good to me. I tried to play with 'LineGap' property on that page but things got even worse - as I said, I'm a total noob in fonts properties.

I tried to uncomment feature aalt in Roman/familyGSUB.fea and 'zero' in 'ss07' in it but this didn't make any effect on the fonts generated.

So, my question is:

  • Is it possible to generate OTF fonts with non-default stylistic set?
  • If not - what property should I try to tweak to change line spacing in TTF fonts?

Thanks again many, many times for all your work.
Terminal OTF:
terminal-otf
Terminal TTF:
terminal-ttf
gedit OTF:
gedit-otf
gedit TTF:
gedit-ttf
Intellij Idea OTF:
idea-otf
Intellij Idea TTF:
idea-ttf

@frankrolf
Copy link
Member

Some comments:

  • you won’t need to build new fonts just in order to use Source Code Pro. You may use the pre-compiled versions available in the release branch.
  • those fonts (and the ones you build from this source data) come with Stylistic Sets within them. It is the task of the rendering environment to activate them – there may or may not be user controls to activate them in a given application
  • when you talk about “spacing”, you presumably mean line spacing. The effect you are seeing stems from the application of different hinting techniques. Is it possible to adjust linespacing within your software?
  • finally, if you want a font with a stylistic set “baked in” as default, try pyftfeatfreeze: https://github.com/twardoch/fonttools-utils/tree/master/pyftfeatfreeze

@antonluht
Copy link
Author

Thanks @frankrolf - pyftfeatfreeze is what I was looking for.
Will try setting hinting as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants