I’ve been creating a font for a logographic writing system, which currently has a few hundred characters (522 to be precise), which can have diacritics attached to the top or the bottom. I created two anchors for those positions, but manually placing them, even by typing coordinates, would be extremely time-consuming. Is it possible to automatically align anchors with some kind of a script, which will place them by dividing a glyph’s width by half for X and set them on a fixed Y coordinate?
It can be done by editing the CompositeData.xml file to support your glyphs.
CompositeData.xml
- FontCreator ships with a big XML file that describes how each composite should be built and positioned relative to the base glyph.
- When you choose Complete Composites → Composite Data the program reads those rules, inserts the members, and positions/scales them.
- The file is fully editable, so you can add your own radicals, offsets or scaling ratios and then regenerate thousands of glyphs in one go.
- On the Tools menu, click Options, and then click the Advanced to Copy and Open the folder where you can edit CompositeData.xml.
- A reference about CompositeData.xml can be found here: Complete Composites
It might not be perfect, but at least it allows you to add all the required parts (components) in one go.
I don’t fully understand how I can move diacritic anchors with that.
On second thought, it is not possible right now.
We could add support for this through the Glyph Transformer. We will add it to our todo list.
Looking forward to it!