|
|
On Friday, 2 December 2022 at 08:00:39 UTC Erco wrote:
I noticed text was off by +1 on x/y in my app, and could see it
in e.g. the fltk test/radio demo.
Opened issue #568:
https://github.com/fltk/fltk/issues/568
wcout mentioned it was probably the new use of Pango, and that
seemed
to be the cause.
But the question is: is this a given with pango, or is
there actually a small x+1/y+1 offset bug?
If it's a given, I'll close the issue.
Curious what the opinion is.
One really notices this in apps where the buttons are small, where
it's easy to see
when text is off, compared to previous releases. Trying to avoid
refactoring a lot of code
to get things recentered.
Hmm, I don't know, but it could well be off - I assume for pango the drawing of the glyphs will be handled by a different renderer (via Cairo?) than our usual direct-to-XFT scheme so there may be issues with origin. That said, I hadn't actually noticed that. I do seem to get different font faces though, and maybe at slightly different sizes, perhaps? So the pango vs. XFT font thing is not a straight mapping... It's tricky. Don't know.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/d45f2efa-f6d7-4721-bb4e-62a2577c2f7en%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |