From: Roger B. <ro...@ro...> - 2004-03-14 22:40:35
|
> Sorry to get pissy, but it's horribly frustrating when something is > supposed to be "cross-platform" and you end up having to put in so many > little exceptions for this that and the other thing. They day you find a perfect piece of software, let us know :-) > If there are > platform differences, it SHOULD be handled transparently by the > relevant libraries, not the end applications. With wxWidgets this is > simply not the case, and it's infuriating at times. It *IS* being handled transparently by wxWidgets. wxWidgets even goes so far as to correct the base sizes for each platform so that the same HTML looks the same on all platforms. (Quite frankly if you ask for a 10 point font on the different platforms while using a 17" monitor, you will get different physical sizes hence the workaround in wxWidgets). However the wxWidgets API doesn't provide a GetFonts API. I dug into my old email and found that it does provide the settings as #defines which I quoted. However wxPython doesn't export those symbols, due to an oversight. I worked with Robin on this and he will be exporting them in the next wxPython release. > Call me stupid, but if the base sizes are defined in a given > platform's header file, why are they being redefined with arbitrary > values in bphtml.py? Or is this something else entirely?? They are not arbitrary values in bphtml. They are supposed to be *identical* to the ones in wxWidgets because of wxPython not exporting the values. Roger |