Hi Deri,

You forgot to include me in To or Cc of your message. As I've mentioned
elsewhere, I am not subscribed...

On Wed Mar 4, 2026 at 12:25 AM CET, Deri wrote:
> On Tuesday, 3 March 2026 16:16:43 GMT onf wrote:
> > [...] Your comment regarding SourceCodePro seems incorrect;
> > I have SourceCodePro Regular locally and opening it in FontForge shows
> > that non-standard variants have assigned glyph names such as dollar.a,
> > uni0431.srb, etc. Indeed, neatroff seems to handle it just fine.
> 
> I suspect what you are seeing in fontforge is the calculation of what to
> postscript name would be - using a Unicode to AGL mapping and appending gsub
> feature names as appropriate - or you have an earlier version which included a
> post table in the font. The version I have shows:-

I admit I don't know much about how FontForge works, but I am quite
certain that neatroff's font description file generator (neatmkfn)
does not include any code to assign AGL names when they are missing.

> [derij@pip build (master)]$ ttfdump -t post /usr/share/texmf-dist/fonts/
> opentype/adobe/sourcecodepro/SourceCodePro-Regular.otf
> True Type Font File Dumper: v 0.5.5
> Copyright 1996-1998 [email protected]
> Dumping File:/usr/share/texmf-dist/fonts/opentype/adobe/sourcecodepro/
> SourceCodePro-Regular.otf
> [...]
> 'post' Table - PostScript
> -------------------------
>          'post' format:          3.0
>          italicAngle:            0.0
>          underlinePosition:      -75
>          underlineThichness:     50
>          isFixedPitch:           1d
>          minMemType42:           0d
>          maxMemType42:           0d
>          minMemType1:            0d
>          maxMemType1:            0d
> 
> So does not include any postscript names.  When fontforge converts to an  afm
> it adds the calculated name, but it does not come from a post table.

I just downloaded the latest version of SourceCodePro Regular from
Google Fonts. Dumping it with ttx shows:
   [...]
   <post>
      <formatType value="2.0"/>
      <italicAngle value="0.0"/>
      <underlinePosition value="-50"/>
      <underlineThickness value="50"/>
      <isFixedPitch value="1"/>
      <minMemType42 value="0"/>
      <maxMemType42 value="0"/>
      <minMemType1 value="0"/>
      <maxMemType1 value="0"/>
      [...]
      <extraNames>
        <!-- following are the names that are not taken from the standard Mac 
glyph order -->
        <psName name="Amacron"/>
        <psName name="Abreve"/>
        <psName name="Aringacute"/>
        <psName name="uni01CD"/>
        <psName name="Aogonek"/>
        [...]

So indeed we have different versions of the font. Given that I could not
locate a more up-to-date version, would you care to attach yours or give
me a link, please?

Cheers,
onf

        • ... G. Branden Robinson
          • ... Damian McGuckin
            • ... G. Branden Robinson
        • ... Deri via discussion of the GNU roff typesetting system and related software
          • ... onf
            • ... onf
            • ... Deri via discussion of the GNU roff typesetting system and related software
    • ... Damian McGuckin
  • ... onf
  • ... onf
  • ... onf
    • ... Deri via discussion of the GNU roff typesetting system and related software
      • ... onf
        • ... Deri via discussion of the GNU roff typesetting system and related software

Reply via email to