|Newbie questions about Pliant
Some remarks about font handling in the new version
|Message posted by pom on 2003/07/17 07:09:18
1/ you assume that variants of a font family are only used to encode
italic/bold/condensed variations. This is far from being "standardized".
Actually, I have a font family with about 80 variants, what is fully allowed
in the norm...
2/ There is some strange behaviour: when I look at my fonts with font.page,
some fonts are badly displayed. Actually, if I modify the scale value from
5 to 10, the computed bitmaps are then ok (but bigger, obviously). It makes
me think there might be some bug somewhere...
|Message posted by hubert.tonneau on 2003/07/17 08:40:38
|> This is far from being "standardized".
Please notice that in Pliant API, the font variant is selected through an
options parameter (so semantically a dictionary), so we have room to provide
any extra details without changing the API.
Also, your right that in the engine, the implementation tries to make standard
something which is not in type1, so it might fail short.
What do you suggest as the way to select the font variant ?
> when I look at my fonts with font.page, some fonts are badly displayed.
Could you email me the bitmap or a screen shot.
|Message posted by pom on 2003/07/18 06:50:09
|First, it seems that most informations are present in the fontname
(so psname and not name) in a simili standard way.
These informations includes:
1/ the encoding scheme
2/ typeface variants like italic, etc.
3/ the weight (form ultralight to extrabold)
4/ the width (from ultra-compressed to wide)
|Message posted by hubert.tonneau on 2003/07/18 07:54:27
|From what I've seen, we have
. on one side the PostScript font name, which is the ID of the font in facts,
. on the other side a set of attributes in the font dictionary, wich is a way
to expose the font specifications
What I would like to avoid is to rely on the PostScript font name because then
we have a flat set of fonts, so selecting the right one among a thousand or more
is not very convienient.
|Message posted by pom on 2003/07/18 13:20:42
|No, I don't mean a "flat model".
But, if you look at the /FontName, you will see that, in the name,
you will find
"Italic" "Kursiv" or "Ital" for itailc variants,
"Oblique" or "Obl" for slanted ones,
"Script", "Handwritten", "Swash", "Calligraphy", "Cursive" or "Tango" for script ones,
"Condensed" or "Cond" for condensed width,
"Compressed" or "Compact" for compressed widht,
I have personally no example of postscript font where the variants particularities
are not coded in the /FontName