On Dec 6, 2013, at 11:36 AM, Adam Twardoch (List) <
list...@twardoch.com> wrote:
> with surge of color font proposals this year (Adobe/Mozilla's SVG, Microsoft's COLR/CPAL, Apple's sbix, Google's CBDT/CBLC), I think we can safely say that the notion of OpenType fonts consisting only of monochrome outline glyphs is a thing of the past.
If there is one word to use in the discussion of the color formats, it is not “safely.” This is the most volatile spec proposal process I have ever seen. It’s also turning into one of the most bizarre specifications possible given the needs.
> The GLIF format currently has a mechanism to store monochrome outline data in the outline element
No. Glyphs can be colored via layer colors. This isn’t per contour coloring, but the same effect can be achieved with layers.
> and it has a mechanism to reference one PNG image per glyph.
>
> I think it would be useful to extend the GLIF format to allow:
> 1. Referencing external SVG files as glyph sources (in a manner similar to the image element)
No. If this goes in, font editors that use UFO would then have to support SVG. I *love* SVG, but it is very deep and complex. I don’t want to, via the spec, suddenly declare that font editors supporting the UFO must support either editing or display of SVG.
> 2. Referencing multiple PNG files as glyph sources. If there is more than one image per glyph, a PPM attribute should be specified.
No. This was discussed during the UFO 3 development process. Long story short, multiple images means arbitrarily overlapping images and outlines. From there it is a slippery slope to turning GLIF into the Illustrator file format. Anyway, at that time I suggested a way for multiple images to be used in an editor that wants to support multiple images. I think that discussion was on the RoboFab list.
> What do you think?
I think I want those formats to be approved specs before I start writing support of them into the UFO spec. :-)
> I also have a question. The GLIF spec says that for the image element, the fileName attribute is "The image file name, including any file extension, not an absolute or relative path in the file system." -- does it mean that the strong assumption is that the PNG image file must reside in the same folder as its referencing GLIF file?
No.
"Image files referenced by glyphs in the UFO must be stored in the images directory.”
http://unifiedfontobject.org/versions/ufo3/images.html
Tal