Rank: Member
Groups: Member
Joined: 11/17/2004(UTC) Posts: 6
|
Does aurigma support open type fonts? The following code appears to return back a bogus text width when I use open type fonts. True type fonts like Arial appear to work properly. NOTE: I am doing other initialization before this, but the issue is this line. And again, works fine with True-Type fonts. Code:dTextWidth = bmpBackground.Graphics.TextFormat.MeasureTextWidth(szRest)
' Sets dTextWidth = 8388608
I'm going to email the font I am having problems with in. Regards, -Brian Edited by user Monday, December 24, 2007 4:12:34 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Hello Brian, Are you working through GDI or GDI+? The problem is that GDI+ does not handle OpenType fonts, so use GDI to measure texts. Just add this line before measuring the text: Code:bmpBackground.Graphics.Engine = DrawingEngineGdi ' or just 0
It should help. Edited by user Monday, December 24, 2007 4:12:51 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/17/2004(UTC) Posts: 6
|
Ahh... Thanks we were using GDI+.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.