[GRASS-dev] Can't get font face index to work
William Kyngesburye
woklist at kyngchaos.com
Wed May 2 20:28:23 EDT 2007
Any index I try is displaying the same default face 0.
Bypassing the freetypecap for now so I can try it:
d.font path="/System/Library/Fonts/Times.dfont"
d.text -m text="some text"
-> Times roman used
d.font path="/System/Library/Fonts/Times.dfont|1"
d.text -m text="some text"
-> Times roman
...
d.font path="/System/Library/Fonts/Times.dfont|4"
d.text -m text="some text"
-> Times roman
This one is outside the range of available faces (4) in this font file.
Tried putting them in the freetypecap:
Times0:/System/Library/Fonts/Times.dfont|0:utf-8:
Times1:/System/Library/Fonts/Times.dfont|1:utf-8:
Times2:/System/Library/Fonts/Times.dfont|2:utf-8:
Times3:/System/Library/Fonts/Times.dfont|3:utf-8:
d.font doesn't complain, but when I click where I want to draw the
text, it says "WARNING: unable to open font map 'Times0'"
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
All generalizations are dangerous, even this one.
More information about the grass-dev
mailing list