Hi, I'm new here.
So I'm making (not really designing per se) my own implementation of the American road sign fonts. I had an idea to implement arbitrary fractions, using superior and inferior digits and the fraction slash:
Then I have some kerning pairs between the digits and the fraction slash:
I export the font with both `kern` and `GPOS`-style kerning and the default OpenType script, but it doesn't really work:
There's really not much need for arbitrary fractions, so my users currently just use the pre-built composite fractions (¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞). Still, they would love me so much if I made this work!
This is the font I am working on:
Thanks in advance! ~Sammi
EDIT: The screenshot above is from this program: TrueType Viewer. I click the Features button to find the kern feature unchecked. Checking it makes the kerning work perfectly, but I assume this wouldn't work in other programs. Why is kerning optional?
Kerning pairs not exporting?
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Kerning pairs not exporting?
Not all programs will support GPOS tables, and as far as I know the older KERN table won't kern glyphs in the Private Use Area.
Design your fraction slash to work with fractions, i.e. use a narrow advance width and large negative side-bearing.
BTW: Scientific Inferiors (sinf) are usually below the baseline, use Denominators (dnom) instead.
Design your fraction slash to work with fractions, i.e. use a narrow advance width and large negative side-bearing.
BTW: Scientific Inferiors (sinf) are usually below the baseline, use Denominators (dnom) instead.
Re: Kerning pairs not exporting?
None of those glyphs are in the Private Use Area. Those characters are mapped to $2070,$B9,$B2,$B3,$2074-$2079 (superscripts) and $2080-$2089 (subscripts).
The .sinf suffix was added by FontCreator itself when I added $2080-$2089. I've changed .sinf to .dnom and the superscripts to .sups in order to enable the automatic OpenType fractions.
As for the fraction slash, I need to have the numbers at a specific distance from the slash (in this case, the width of the slash). While I can reduce the bearings on the slash, I can't place the numbers consistently without kerning. I tried doing that and removing the kerning pairs, and as expected, it worked for some fractions but not others:
The .sinf suffix was added by FontCreator itself when I added $2080-$2089. I've changed .sinf to .dnom and the superscripts to .sups in order to enable the automatic OpenType fractions.
As for the fraction slash, I need to have the numbers at a specific distance from the slash (in this case, the width of the slash). While I can reduce the bearings on the slash, I can't place the numbers consistently without kerning. I tried doing that and removing the kerning pairs, and as expected, it worked for some fractions but not others:
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Kerning pairs not exporting?
That's correct — the subscripts are usually below the baseline. Denominators usually sit on the baseline, though there is no hard and fast rule how they are designed. I copy/paste superscript glyphs to create denominators as composites, then I move them down to the baseline — they are unmapped.sammi wrote:The .sinf suffix was added by FontCreator itself when I added $2080-$2089. I've changed .sinf to .dnom and the superscripts to .sups in order to enable the automatic OpenType fractions.
It can be done. I don't know why kerning of subscripts with fraction slash does not work.sammi wrote:I can't place the numbers consistently without kerning.
-
- Posts: 44
- Joined: Mon Aug 19, 2013 10:33 pm
Re: Kerning pairs not exporting?
I'd really like to get to the bottom of this one too. Here are three pairs defined with kerning in the preview window:
and in the test window:
The kerning shows on all three in the preview toolbar but only on the AV in the test window!
The delta is the Greek Capital at U+0394 and the natural sign is a standard 'miscellaneous symbol' at U+266E, so they're not really that peculiar.
I suspect that the code which draws the test window uses similar Windows APIs to what I'm using in my program, so it would be useful to know what the preview toolbar and test window do differently!
Dave
and in the test window:
The kerning shows on all three in the preview toolbar but only on the AV in the test window!
The delta is the Greek Capital at U+0394 and the natural sign is a standard 'miscellaneous symbol' at U+266E, so they're not really that peculiar.
I suspect that the code which draws the test window uses similar Windows APIs to what I'm using in my program, so it would be useful to know what the preview toolbar and test window do differently!
Dave
David Webber
http://www.mozart.co.uk
http://www.mozart.co.uk
-
- Top Typographer
- Posts: 9877
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Kerning pairs not exporting?
See this other thread.
I think the problem will be fixed soon, so your kerning pairs with fraction slash will be exported.
I think the problem will be fixed soon, so your kerning pairs with fraction slash will be exported.
-
- Moderator
- Posts: 11158
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Kerning pairs not exporting?
I've tried to see if the upcoming update of FontCreator would make a difference here, but unfortunately no improvements were found.
The Test dialog (which uses the kerning information from the OpenType layout feature tables) fails to process the first kerning pair (Delta seven), so I suspect Windows (Uniscribe) refuses to display it. Word 2007 uses the old kern table, and fails to show the second kerning pair (Latin capital A with Music natural sign $266E).
So it seems like a shortcoming or bug within Windows, Microsoft Word, or both.
The Test dialog (which uses the kerning information from the OpenType layout feature tables) fails to process the first kerning pair (Delta seven), so I suspect Windows (Uniscribe) refuses to display it. Word 2007 uses the old kern table, and fails to show the second kerning pair (Latin capital A with Music natural sign $266E).
So it seems like a shortcoming or bug within Windows, Microsoft Word, or both.