font rendering issues

71 views
Skip to first unread message

Richard Jones

unread,
Jul 17, 2012, 9:06:22 PM7/17/12
to pyglet-users
Hi all,

If anyone has a chance I'd appreciate if you could pull the latest
pyglet repos and try out examples/font_comparison.py - you will
probably need to obtain some of the fonts, but most importantly I'm
interested in whether Consolas renders correctly on various systems.
On my Lion system it does not. You can see obvious rendering errors if
you compare the Consolas render to the Menlo render in the attached
images.

The question really is whether this is a problem on OS X only...


Richard
Screen Shot 2012-07-18 at 11.04.21 AM.png
Screen Shot 2012-07-18 at 11.04.52 AM.png

Phillip Nguyen

unread,
Jul 17, 2012, 11:44:46 PM7/17/12
to pyglet...@googlegroups.com

Seems to be related to this bug which only affects CTFongGetBoundingRectsForGlyphs on Mac OS X Lion:


The example renders fine on Snow Leopard, but Lion is apparently reporting the wrong dimensions for glyphs in some monospaced fonts.

--phillip

Richard Jones

unread,
Jul 17, 2012, 11:50:32 PM7/17/12
to pyglet...@googlegroups.com
On 18 July 2012 13:44, Phillip Nguyen <evil.p...@gmail.com> wrote:
>
> Seems to be related to this bug which only affects
> CTFongGetBoundingRectsForGlyphs on Mac OS X Lion:
>
> http://openradar.appspot.com/10377021
>
> The example renders fine on Snow Leopard, but Lion is apparently reporting
> the wrong dimensions for glyphs in some monospaced fonts.

Nice detective work, thanks. I guess we'll have to incorporate the
code linked from that issue to work around it :-(


Richard

Greg Ewing

unread,
Jul 18, 2012, 1:21:57 AM7/18/12
to pyglet...@googlegroups.com
Phillip Nguyen wrote:
>
> Seems to be related to this bug which only affects
> CTFongGetBoundingRectsForGlyphs on Mac OS X Lion:
^^^^

Ah, there's the problem -- they outsourced it to
Chinese software developers!

--
Greg

anatoly techtonik

unread,
Jul 18, 2012, 4:01:48 AM7/18/12
to pyglet...@googlegroups.com
Fedora 17. Seems fine.
Screenshot from 2012-07-18 11:00:24.png

anatoly techtonik

unread,
Jul 18, 2012, 4:06:14 AM7/18/12
to pyglet...@googlegroups.com
 Wait. The rendering is wrong. Consolas is monospaced, but def lines are not properly aligned vertically.

anatoly techtonik

unread,
Jul 18, 2012, 4:37:50 AM7/18/12
to pyglet...@googlegroups.com
It might be that there is no Consolas and another font is substituted. Is it possible to detect if font is available with pyglet?
Reply all
Reply to author
Forward
0 new messages