From: Roger B. <ro...@ro...> - 2004-03-14 18:58:27
|
> But, I found that if I just removed the smallest two font sizes from > the basefonts list in the SetFontScale method of bphtml, things looked > ok in the details view without affecting the appearance anywhere else, > as far as I could notice. Here are the code changes I propose... Removing them is not the right fix for this. Those listings of base size need to be exactly 7 items long and should correspond to the 7 sizes used in the wxWidgets code. They are used in a call to wxHtmlWindow.SetFonts and are listed because there isn't a wxHtmlWindow.GetFonts. Please read that documentation. I think this is the list of base sizes for the Mac: #define wxHTML_FONT_SIZE_1 9 #define wxHTML_FONT_SIZE_2 12 #define wxHTML_FONT_SIZE_3 14 #define wxHTML_FONT_SIZE_4 18 #define wxHTML_FONT_SIZE_5 24 #define wxHTML_FONT_SIZE_6 30 #define wxHTML_FONT_SIZE_7 36 If Mac fonts are too small, then you need to change the default relative sizing in bphtml.HTMLWindow.__init__. I would suggest making relsize=None and then inside set it to 0.7 for non-Mac and whatever for Mac. Roger |