
On Tue, 4 Jan 2005, bulia byak wrote:
On Tue, 04 Jan 2005 13:09:18 -0600, Derek P. Moore <derekm@...606...> wrote:
Actually, what likely happened is that the Gtkmm codebase didn't "pick up" the bugs that bbyak was having to fix in SPUnits. (Gtkmm Units never relied on the 0.8 factor, etc.)
Wow. What do they rely on instead? What is the px/pt ratio in your code?
Actually, it does use the 0.80 factor, but in its inverted fashion (1.25). However I chose to make px the primary unit so the conversion factors are expressed as functions of px's rather than pt's. I may not have gotten everything right yet, but it should be fairly easy to fix, because all of the unit definitions are loaded from an external file. If expressing things as px's is a bad assumption, it can be fixed by editing the .txt file.
I am trying not to have the 0.8 factor show up in the codebase itself; at least, not in the gtkmm frontend. The hope is that by collecting all the unit factors, types, names, etc. in a single location, it should make it easier to maintain and augment in the future.
Like Derek says, it's still a work in progress, so if you're curious please check out the code and take a look, and if something's wrong let us know or send in a patch.
Bryce