Kerning in Noto Serif
Hi all, I can't get Kerning working with Noto Serif. My minimal file is: \definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 3: {\addff{oldstylenumber}VAVAVAVAVAVA 12345}\par \testnoto Line 4: {VAVAVAVAVAVA 12345}\par Line 5: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 6: {\addff{oldstylenumber}VAVAVAVAVAVA 12345}\par \stoptext Line 4 and 6 should be significantly shorter too. I tried the variable and the static versions. In fontforge I can see a kerning of -80 between A and V. My context is the newest lmtx. Greetings Lutz
Am 06.06.24 um 09:41 schrieb Lutz Haseloff:
Hi all, I can't get Kerning working with Noto Serif. My minimal file is:
\definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 3: {\addff{oldstylenumber}VAVAVAVAVAVA 12345}\par \testnoto Line 4: {VAVAVAVAVAVA 12345}\par Line 5: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 6: {\addff{oldstylenumber}VAVAVAVAVAVA 12345}\par \stoptext
Line 4 and 6 should be significantly shorter too. I tried the variable and the static versions. In fontforge I can see a kerning of -80 between A and V. My context is the newest lmtx.
For me, it looks good with ConTeXt v2024.05.31 and Noto Serif v.1.03 Just to check the font (yes, it has kerning): $ mtxrun --script font --list --pattern=notoserifregular --info mtx-fonts | mtx-fonts | mapping : notoserifregular mtx-fonts | fontname : notoserif mtx-fonts | fullname : notoserif mtx-fonts | filename : NotoSerif-Regular.ttf mtx-fonts | family : notoserif mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt mtx-fonts | mark cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt mtx-fonts | mkmk cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | ccmp cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt Hraban
Thanks Hraban,
my Noto Serif (just downloaded) is 2.013
--script font shows kern too:
kern cyrl dflt
dflt dflt
grek dflt
latn dflt
Greetings Lutz
Am 6. Juni 2024 11:12:18 MESZ schrieb Henning Hraban Ramm
Am 06.06.24 um 09:41 schrieb Lutz Haseloff:
Hi all, I can't get Kerning working with Noto Serif. My minimal file is:
\definefontfeature[oldstylenumber][onum=yes] \definefont[testnoto][file:NotoSerif-Regular*default at 12pt] \starttext Line 1: {VAVAVAVAVAVA 12345}\par Line 2: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 3: {\addff{oldstylenumber}VAVAVAVAVAVA 12345}\par \testnoto Line 4: {VAVAVAVAVAVA 12345}\par Line 5: {\setff{oldstylenumber}VAVAVAVAVAVA 12345}\par Line 6: {\addff{oldstylenumber}VAVAVAVAVAVA 12345}\par \stoptext
Line 4 and 6 should be significantly shorter too. I tried the variable and the static versions. In fontforge I can see a kerning of -80 between A and V. My context is the newest lmtx.
For me, it looks good with ConTeXt v2024.05.31 and Noto Serif v.1.03
Just to check the font (yes, it has kerning):
$ mtxrun --script font --list --pattern=notoserifregular --info mtx-fonts | mtx-fonts | mapping : notoserifregular mtx-fonts | fontname : notoserif mtx-fonts | fullname : notoserif mtx-fonts | filename : NotoSerif-Regular.ttf mtx-fonts | family : notoserif mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt mtx-fonts | mark cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt mtx-fonts | mkmk cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | ccmp cyrl dflt mtx-fonts | grek dflt mtx-fonts | latn dflt
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
On 6/6/2024 12:21 PM, Lutz Haseloff wrote:
Thanks Hraban,
my Noto Serif (just downloaded) is 2.013
--script font shows kern too: kern cyrl dflt dflt dflt grek dflt latn dflt (^^ but not all steps are shared!)
I updates that font (updating noto is a pain .. there was a zip once, now one has to download per font unless i miss something). Indeed you don't get kerns out of the box. Try this: \char42\char38 and you will see a kern. However, that's the 'shared portion' so in order to get the rest you need to do: \definefontfeature[default][default][script=latn] as it looks like dflt/dflt is no longer does that ... keep in mind thta fonts are not downward compatible so never update (or let your syetem do it) in the middle of a project Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Thanks Hans, works now as expected.
Am 6. Juni 2024 16:30:56 MESZ schrieb Hans Hagen
On 6/6/2024 12:21 PM, Lutz Haseloff wrote:
Thanks Hraban,
my Noto Serif (just downloaded) is 2.013
--script font shows kern too: kern cyrl dflt dflt dflt grek dflt latn dflt (^^ but not all steps are shared!)
I updates that font (updating noto is a pain .. there was a zip once, now one has to download per font unless i miss something).
Indeed you don't get kerns out of the box. Try this:
\char42\char38
and you will see a kern. However, that's the 'shared portion' so in order to get the rest you need to do:
\definefontfeature[default][default][script=latn]
as it looks like dflt/dflt is no longer does that ... keep in mind thta fonts are not downward compatible so never update (or let your syetem do it) in the middle of a project
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
Lutz Haseloff