[PATCH] Change default MacOS font
Robert C. Helling
helling at atdotde.de
Tue Feb 5 11:56:43 PST 2013
On Feb 4, 2013, at 10:23 PM, Robert C. Helling wrote:
>
> On Feb 4, 2013, at 11:35 AM, Robert C. Helling wrote:
>
>
> On the printing issue: It's really the size. In print.c, in set_font, if I manually divide the size parameter by a number around 20.0, it looks ok-ish. Without the number, there the second argument to pango_font_description_set_size is set to values like
>
> Setting font size to 153.600000
> Setting font size to 128.000000
> Setting font size to 153.600000
> Setting font size to 106.666667
> Setting font size to 106.666667
> Setting font size to 106.666667
> Setting font size to 106.666667
> Setting font size to 106.666667
> Setting font size to 106.666667
> Setting font size to 106.666667
> Setting font size to 106.666667
>
> as a printf shows. I don't know if those numbers are ok and the outcome is too big or if those numbers are too big. A hack to fix this would of course be to multiply here by a fudge factor of about 0.05 if running on a Mac…
>
I checked, these number are the same on my Linux box, but there the printout is ok. It seems to me Cairo/Pango somehow does not realize that on the Mac, all printers have a virtual resolution of 1200DPI. I googled a bit but could not find anybody else having a similar problem or even a solution. Thus I would suggest (unless somebody has a better understanding what is going on with Cairo font sizes on different platforms and devices (screen is ok, so are the fonts in the plot, just not the text in the boxes below) to include a fudge factor in pango_font_description_set_size that is nontrivial (about 1/20 = 0.05) only on Macs.
Best
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
More information about the subsurface
mailing list