I am wondering whether I have achieved a breakthrough in chromatic font technology research.
There are various threads about the possibility of chromatic font technology.
http://forum.high-logic.com:9080/t/chromatic-fonts-month/1398/1
http://forum.high-logic.com:9080/t/chromatic-fonts-month-2007/1690/1
http://forum.high-logic.com:9080/t/chromatic-fonts/1391/1
Up until now I have thought that introducing chromatic font technology would require an addition within the TrueType and OpenType specifications.
However, I now realize that that is not a necessary stage.
I have been studying again the Petra Sancta method of expressing colours in monochrome. The Petra Sancta method dates from the Seventeenth Century as a method for depicting colours on armorial bearings in black and white books on heraldry. It uses vertical line shading for red, horizontal line shading for blue, upper left to lower right diagonal shading for green, lower left to upper right diagonal shading for purple, a dotted fill for yellow or gold.
I have previously used such shadings for authoring-time glyphs for colour in my Quest text font.
http://www.users.globalnet.co.uk/~ngo/courtcol.htm
http://www.users.globalnet.co.uk/~ngo/QUESTTXT.TTF
Recently I have been thinking of making a font to assist art experiments where the monochrome glyphs representing colours use the Petra Sancta shadings yet in such a manner that the relative percentages of black and white in a glyph is proportional to the grey scale luminance of the colour represented by that glyph. Thus the glyph for blue would be about 90% black with contours of horizontal lines, the glyph for red would be about 70% black with contours of vertical lines, the glyph for green would be about 41% black with contours of upper left to lower right diagonals, the glyph for yellow would be about 11% black with contours of dots. The font could then be used to produce pictures. I am also thinking of having a wider choice of glyphs so that other colours could be represented in monochrome.
During the course of this, I thought of the idea that chromatic fonts could be produced using the existing TrueType and OpenType specifications using an existing TrueType font producing program such as FontCreator by specifying some rules for a font indicating to a rendering system that a chromatic contour was intended. Such rules would include adding a tiny counterclockwise contour onto any clockwise contour that was to be displayed in other than the foreground colour. I have thought that a good name for “a tiny counterclockwise contour intended to indicate the colour of the clockwise contour within which it is contained, both if that colour is indicated as an absolute colour and if that colour is indicated as a colour index in a colour palette” could be a cencontour. I thought of the name cencontour from the name cencharacter. It was the name of a proceduce call in the hardcopy plotter graphics package for the Elliott 803 mainframe computer upon which I first used computer graphics. A cencharacter is one of those small graphics drawn around a point on a scientific graph so that its position can be clearly noticed. There is a circle, a square, a triangle and so on. I remember that cencharacter(4) was a butterfly style design made up of four straight lines, two of which passed through the data point itself, whereas the circle, square and triangle did not actually connect with the data point itself.
It occurs to me that if cencontour shapes a few font units wide and tall in various shapes were specified and allocated in a list to have various meanings, then a chromatic rendering system could detect the cencontours and then for each cencontour assign colour information to the clockwise contour in which the cencontour was placed, before discarding the cencontour, so that the shape of the cencontour would not be rendered yet the colour information which it indicated could be used.
I am wondering how big a job it would be for a rendering system to extract this information from cencontours, bearing in mind that they are first detected by being counterclockwise and tiny, just a few font units wide or tall.
Using cencontour technology could mean that chromatic font technology could be implemented without needing any changes at all to the TrueType and OpenType specifications. Also, as a clockwise contour without a cencontour within it would be rendered in foreground colour, the cencontour invention can be used such that a rendering system for such chromatic fonts would display an existing monochrome font normally.
William Overington
23 November 2007