CLIM mail archive
[Prev][Next][Index][Thread]
text-style to font mapping algorithm
I have not yet received a reply to the following from Lucid. So, I am
submitting it also to the CLIM mailing list for help. The question I
pose regarding the CLIM algorithm for mapping text-styles to fonts is
germane to all platforms and should be of interest to all readers.
I have 2 questions / bugs:
1. The text style '(:sans-serif :roman :normal) maps to:
-linotype-helvetica-medium-r-normal--16-120-100-100-p-86-iso8859-2
rather than to:
-adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-1
even though the adobe font precedes the linotype font in the font path.
This seems to indicate that somehow CLIM believes the linotype font to
be a better mapping than the adobe font. Could it be that the pixel
size of 16 is "preferred" over 14 for :normal text-size? What exactly
is the algorithm used to map text styles to fonts in Lucid CLIM?
2. According to the CLIM documentation, the :text-size attribute can
be specified in "printer's points". If so, the following would seem
to be errors:
A. '(:sans-serif :roman 14) maps to
-adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1
which is a point size of 180
B. '(:sans-serif :roman 140) maps to
-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1
which is a point size of 120.
The latter case certainly seems wrong as it is seriffed.
Meir Laker
IBM Thomas J. Watson Research Center
Phone: 914-945-2699
meir@watson.ibm.com
0,,
Follow-Ups:
Main Index |
Thread Index