[PATCH] Change default MacOS font

Robert C. Helling helling at atdotde.de
Mon Feb 4 13:23:01 PST 2013


On Feb 4, 2013, at 11:35 AM, Robert C. Helling wrote:

> On Mon, 4 Feb 2013, subsurface at henrik.synth.no wrote:
> 
>> From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
>> 
>> "Arial Unicode MS" doesn't have bold fonts, at least not on my system.
>> This makes it impossible to distinguish trip dives from non-trip dives,
>> since dives without at trip have bold index numbers.
>> 
>> Signed-off-by: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
>> ---
>> 
>> 
>> It would be grand if someone else could verify this on a different MacOS
>> system than mine.   Robert?  Dirk?
>> 
> 
> Will try this tonight as my Macbook is at home and in the office on my desk is only a computer running a different OS by this Finish guy.


With the patch, I do indeed see bold numbers. And the stars are there as well.

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…

Sorry, have to go, don't have time to check this on a different computer.

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