[wxsword-devel] SetFonts Patch

David Guest wxsword-devel@crosswire.org
Tue, 15 Apr 2003 19:13:33 +1000


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};
		// Choose approriate font sizes for GTK
		const int sizes[7] = {10, 12, 14, 16, 19, 24, 32};
	html->SetFonts(wxT("Arial"), wxT("Courier New"), sizes);