From: Tom P. <mlp...@ea...> - 2004-03-14 21:30:19
|
On Mar 14, 2004, at 1:59 PM, Roger Binns wrote: >> 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 Ok, thanks. > 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. Using the correct Mac font sizes, the smallest text in the phonebook details view is still readable. So I don't think it's necessary to adjust the font scaling specially for Macs. In case it's useful, I've attached an updated patch file below. Tom |