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
Creating opentype fractions (and checking them) #2441
Comments
I rarely use FontForge UI to create OT features but import I supposed you meant creating arbitrary fractions, my approach is chaining 3-4 lookups together and trigger them with And because I mostly focus on creating fonts for the web, so "a nice piece of software" I use to test my fonts is any web browser which has HarfBuzz working as OT shaper. With HTML + CSS, Chrome, FireFox and new Opera can expose OT features quite consistently across OS. CSS3 can expose many OT features with |
Very interesting Sungsit, thanks a lot ! Concerning the fractions, without being sure of what you've done, it seems quite similar… About testing with a browser… Hmm didn't think of that. My CSS/HTML knowledge is a bit rusty, but I'll give it a go… At first i was hoping that Scribus would be a match for InDesign, but text management is a bit cumbersome there, and i was quite disappointed. Besides, I am always in search of a good read, be it about OpenType features and implementations, FontForge, etc… Do you have an idea ? |
When the code inside a feature is only used once, you don’t need to wrap it into a lookup tag. Likewise you don’t need backslash before glyph names if these names are not an FEA keyword.
Spec: http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html There is sample code for fractions in the guide. Or you can look at adobe-fonts/source-serif-pro FEA files for instance.
lualatex — it is far superior to vanilla InDesign in many departments and OTL support is one of them. |
My fraction steps:
As @adrientetar pointed out, source-serif-pro's fraction may be a better example. But it's my preference to separate lookups & features to make all lookups reusable and easier to find even if it will be used only once. And http://www.opentypecookbook.com/ is also my starting place to learn OT syntax.
I manually define GDEF for a reason as FontForge can't figure out what Thai glyphs should be included in combining class (at least when I merge features & generate font via python script and some applications can't display Thai properly). I'll test makeotf to see if that will cause any problem, thanks for pointing this out. |
@adrientetar, Ah I just got your point. I agree that I don't need to wrap this one and the like in any feature. Good spot, thank you. |
Thanks both of you. In fact i stumbled upon the cookbook not very long after i asked you… @sungsit :Thanks for the explanation. So it is just as I understood it, but the ' did throw me off… I didn't know what it was for. @adrientetar : thanks for the suggestion. I'd rather stick to a WYSIWYG editor if possible though… I don't really have the time and patience to learn a script language just to check my font designs. But who knows ? |
You only need some boilerplate document, and a couple of instructions. It does not take more time than when working with a GUI program for the first time. |
Hi both of you ! |
Hi !
I wanted to know how you'd go about making opentype compliant fonts that allow for nice generic fractions…
I have succeded in making working smallcaps, numerators/denominaors, subscripts etc, but fractions are a bit more complicated it seems…
I have a proper fraction glyph.
I ahd success using contextual chaining substitution (named 'frac'), but i only mimicked what i found in the lookups of a nicely working font (namely Calibri). So that's a sort of black magic trick, with 2 'frac' lookups, a numr to dnom subtitution (?), a slash to division bar substitution, etc…
It works mind you, but i like to learn how to do these things the right way.
Is there a proper method to do that in FF ?
Another question: I mainly use FOSS (except the OS itself…: windows 7) . But i find it difficult to test my work: LibreOffice for instance doesn't do proper kerning on windows. Neither does Inkscape, but at least standard ligatures work, etc…
At the moment i can enjoy a month of InDesign testing for free, and the joy is immense: access to open-type features like fractions, alternate styles, ligatures, etc…
But i won't be able to afford a monthly subscription ONLY to be able to test open-type features of my work.
HEnce the question: do you know a nice piece of software on windows that would allow me to reliably test my fonts ?
Thanks a lot for every little hint you can give me !
Have fun with FF
Gwen
The text was updated successfully, but these errors were encountered: