[wxsword-devel] SetFonts Patch
Jason Turner
wxsword-devel@crosswire.org
Wed, 16 Apr 2003 23:38:35 -0600
Thanks, I'll get that applied.
-Jason
-------------
Jason,
This fixes the problem where the html->SetFonts crashed with wxWin 2.4. At
least it did on the GTK side of things, I have the dev tools for windows but
haven't touched the thing in a while.
I would be interested in helping you out. Give me a starting place and I can
see what I can do for you.
David Guest
File: BookViewControl.cpp
Function: AddTab()
#ifdef _WIN32
// Choose appropriate font sizes for windows
const int sizes[7] = {7, 8, 10, 12, 16, 22, 30};
#else
// Choose approriate font sizes for GTK
const int sizes[7] = {10, 12, 14, 16, 19, 24, 32};
#endif
html->SetFonts(wxT("Arial"), wxT("Courier New"), sizes);