Re: A few notes on text

Chris Marrin ([email protected])
Mon, 5 Jun 1995 22:42:08 -0700


> <H4>Font Node</H4>
>
> <P>The following node is for specifying font type information. It should
be
> representable using various font technologies. The fields should be
> self-explanatory.
>
> <PRE>
> FontSpecification {
> SFString family
> SFEnum weight # VERYLIGHT, LIGHTT, MEDIUM, DEMIBOLD,
BOLD
> SFEnum slant # ROMAN, ITALICS, OBLIQUE
> SFInteger point_size
> }

I've talked to our i18n guys and they've expressed concern about
specifying family in this way. If I want to intersperse Japanese and
English, I can do so by setting the coded character set to Unicode, which
contains glyphs from both languages. For the font family I want to use
Palatino for the English glyphs but my Palatino font contains no glyph for
any of the Japanese characters. I do have Mincho on my machine which does
contain Japanese glyphs.

How do I specify the combination? Do I have a table which says that when
I specify Palatino and a Japanese character is needed, use Mincho? Do I
specify a new family, "Palatino-Mincho" which can select glyphs from
either family?

The i18n group suggested we make the family an MFString, allowing a list
of fonts to be specified. When searching for a glyph, each font is
searched in order until one is found satisfying the slot in the coded
character set. This way I would specify:

family: "Palatino", "Mincho", "Times-Cyrillic"

and glyphs from any of those families can be selected as needed.

-- 
chris marrin      Silicon      http://www.sgi.com/Products/WebFORCE/WebSpace
(415) 390-5367    Graphics     http://reality.sgi.com/employees/cmarrin/
[email protected]   Inc.         
         "As a general rule, don't solve puzzles that open portals to Hell."