ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Kerning in Noto Serif
@ 2024-06-06  7:41 Lutz Haseloff
  2024-06-06  9:12 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 5+ messages in thread
From: Lutz Haseloff @ 2024-06-06  7:41 UTC (permalink / raw)
  To: Context Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 719 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 824 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Kerning in Noto Serif
  2024-06-06  7:41 [NTG-context] Kerning in Noto Serif Lutz Haseloff
@ 2024-06-06  9:12 ` Henning Hraban Ramm
  2024-06-06 10:21   ` Lutz Haseloff
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2024-06-06  9:12 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Kerning in Noto Serif
  2024-06-06  9:12 ` [NTG-context] " Henning Hraban Ramm
@ 2024-06-06 10:21   ` Lutz Haseloff
  2024-06-06 14:30     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Lutz Haseloff @ 2024-06-06 10:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3052 bytes --]

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 <texml@fiee.net>:
>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
>___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 3695 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Kerning in Noto Serif
  2024-06-06 10:21   ` Lutz Haseloff
@ 2024-06-06 14:30     ` Hans Hagen
  2024-06-06 18:03       ` Lutz Haseloff
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2024-06-06 14:30 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Kerning in Noto Serif
  2024-06-06 14:30     ` Hans Hagen
@ 2024-06-06 18:03       ` Lutz Haseloff
  0 siblings, 0 replies; 5+ messages in thread
From: Lutz Haseloff @ 2024-06-06 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1869 bytes --]

Thanks Hans, works now as expected.

Am 6. Juni 2024 16:30:56 MESZ schrieb Hans Hagen <j.hagen@xs4all.nl>:
>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
>___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 2432 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-06 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-06  7:41 [NTG-context] Kerning in Noto Serif Lutz Haseloff
2024-06-06  9:12 ` [NTG-context] " Henning Hraban Ramm
2024-06-06 10:21   ` Lutz Haseloff
2024-06-06 14:30     ` Hans Hagen
2024-06-06 18:03       ` Lutz Haseloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).