Skip to content

SelectAll() and BuildAccented() has no effect in script #4061

@paulbernhard

Description

@paulbernhard

Hi,

i wrote a simple fontforge script to process .pfa font files. The script prepress.pe is supposed to…

Open($1)
Reencode("unicode")
ScaleToEm(1024)
SelectAll()
BuildAccented()
Save($1)
Close()

Running it using $ fontforge -script prepress.pe fontfile.pfa it reencodes the file, scales all characters to 1024 em, saves it to fontfile.pfa but does not build the accented glyphs, exiting the script without error message. Reproducing the same steps in the GUI version on my Mac works well and build the accented glyphs sucessfully.

The script executes very fast and i have the suspicion that the selection step before buiding the accents is somehow omitted. Trying the same process with Clear() instead of BuildAccented() does not clear all glyphs as expected. But if i replace SelectAll() with Select("A"), the "A" glyph is sucessfully cleared.

Could it be that the script doesn't "wait" for the SelectAll() to be performed or what could be a possible issue here ?

Thanks !

Specifications :

  • Mac OS X 10.13.6
  • fontforge OS X install: version 20190801
  • fontforge command line install (brew): 20190801

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions