Fontforge: How to change fill color?

Created on 22 Aug 2017  路  5Comments  路  Source: fontforge/fontforge

I am confused as to how you change the color of lines in fontforge. For example, I want letters A to E to be red, F to I to be blue and so on. Is this in the Resource Editor possibly? I tried looking there but had no luck. How can I change the fill color from default black to other colors?

UI question

All 5 comments

The fill/preview colour is controlled in the resource editor:

reeee

But this is a global setting. As far as I'm aware, there is no per-glyph configuration. What's your use case for colouring them differently?

While it is unusual that FontForge has two different preferences dialogs, both are "in the editor". The displayed dialog is opened by choosing "X Resource Editor" from the File menu.

When changing things like Fill color you don't typically have to restart the program but it is necessary to close and reopen the CharView window.

@jtanx I just few hours ago came up with the task to to create OpenType-SVG icon font. So basically i need to make few hundreds of unicode chars as colorful glyphs composed of different color paths. For example as this image.
image
Not sure is the FontForge right tool for this.

FontForge doesn't currently have much in the way of color support for contours (other than choosing a global fill color, which is strictly a UI setting that doesn't affect output). You would probably be better off using Inkscape or another such tool but you could also make the shapes in FontForge and post-process with a library like python's svgwrite if you prefer.

You can change the font-wide fill color and you can label individual glyphs with a color in the GlyphInfo dialog (the color is displayed in the FontView). Beyond that there won't be per-glyph-fill colors until and unless FontForge supports color fonts (too niche as a UI feature).

Was this page helpful?
0 / 5 - 0 ratings