huertatipografica/piazzolla

STAT and issues in InDesign 2020

Closed this issue · 16 comments

Hi there
The STAT table as it was in 7172520 made some problems in InDesign, which I fixed by adding locations in tools/buildStat.py

Now it works better. But I see two issues:

  • Indesign: changing the axes values set the font style to italic:
  • Mac Font Book not showing names properly (when I drop the STAT table this problem is solved):

Maybe this is connected with the elidedFallbackName parameter in tools/buildStat.py?

buildStatTable(ttFont, axes, locations, 'Italic' if isItalic else 'Upright')

@RosaWagner

STAT issue
Screen Shot 2020-08-20 at 15 18 44
Screen Shot 2020-08-20 at 15 18 29

This seems related to the version of the STAT table:

table.Version = 0x00010001
InDesign: Sliders don't work at all

table.Version = 0x00010002
InDesign: Sliders work but always switching to Italics

I've had the same issues but I've solved them by doing the following:

  • Use format 2 AxisValues
  • Include nameID 25
  • Include psnames for fvar instances

I'll have Roboto Serif up in a few days which you could use as a reference.

Thanks @m4rc1e
I will try this later and get back with the results

Hi @juandelperal, I am back from holidays :) where are we in there ? Any improvement on this indesign issue?

Thanks @RosaWagner
Yes, I worked a little bit more changing the ital axis tag as here: https://docs.microsoft.com/en-us/typography/opentype/spec/stat#example-5-a-family-comprised-of-a-non-italic-variable-font-plus-an-italic-variable-font and adding ranges in the weight axis.
I also reviewed some fonts that work OK in InDesign and tried to emulate the STAT table, but still there are problems with Piazzolla. (BTW in Illustrator everything is OK 🤦‍♂️).

The wght axis –format2, which covers the full range between 100 and 900– works ok.
nominalValue=400, rangeMinValue=350, rangeMaxValue=450.

Changing the opsz axis –format 1, which has discrete positions– doesn't work well.
value=14, name='14pt'

This can be solved by changing the table version:
statTable.Version = 0x00010002
which seems very random.

In any case: moving the sliders switch to italics

——

If you see something to fix please let me know.
For testing/fixing my workflow is:

  1. Copying the fonts in /Library/Application Support/Adobe/Fonts.
  2. Test options in buildStat.py
  3. Run
for VF in /Library/Application\ Support/Adobe/Fonts/Piazzolla*.ttf; do
    python tools/buildStat.py $VF
done

Changes apply instantly.
Thanks

This bug is so weird ^^ But as Marc says many times, variable font support on indesign is super experimental and will get better in the future. Important is that it works on the web and illustrator. Can you release the last binaries ? I gonna check directly the TTF ;)

nameID25 should be the following:

Roman:
PiazollaRoman

Italic:
PiazollaItalic

The fvar instance ps names should be structured:

Roman:
PiazollaRoman-Bold

Italic:
PiazollaItalic-Bold

Just copy, https://github.com/TypeNetwork/Roboto/blob/master/scripts/gen_stat.py and replace the wdth axis with your opsz axis.

Note that as of InDesign 2020 15.1.12 (August 2020 update), according to my tests, nameID25 + psnames in fvar is sufficient (this is also what Photoshop 2020 asks for, anyway).

Thanks @m4rc1e
Thats what I did. It seems like the name 25 was modified in
https://github.com/huertatipografica/piazzolla/blob/master/tools/fixNameTable.py

By removing that, the names are as you described:

nameID25 should be the following:

Roman:
PiazollaRoman

Italic:
PiazollaItalic

The fvar instance ps names should be structured:

Roman:
PiazollaRoman-Bold

Italic:
PiazollaItalic-Bold

Thanks @m4rc1e
Thats what I did. It seems like the name 25 was modified in
https://github.com/huertatipografica/piazzolla/blob/master/tools/fixNameTable.py

By removing that, the names are as you described:

nameID25 should be the following:
Roman:
PiazollaRoman
Italic:
PiazollaItalic
The fvar instance ps names should be structured:
Roman:
PiazollaRoman-Bold
Italic:
PiazollaItalic-Bold

Hi @juandelperal

In v2.000 https://github.com/huertatipografica/piazzolla/releases/latest nameID 25 are the same for Roman and Italic.

Hi @thlinard
Thanks, I just removed fixNameTable.py from the chain and 2.001 is building with that fix.

Have you the latest binaries?

This bug is so weird ^^ But as Marc says many times, variable font support on indesign is super experimental and will get better in the future.

Not exactly. InDesign supports VF when they are made exactly like the VFs made by Adobe, which is a bit restrictive I must admit. InDesign 15.1.12 is a bit more forgiving.