GetCharacterPlacement() problems
From: Mike D Sutton (EDais_at_mvps.org)
Date: 06/16/04
- Next message: DSKR: "'TrueType to Bitmap' problem"
- Previous message: Javier Martinez: "Remove the title bar"
- Next in thread: Mike D Sutton: "Re: GetCharacterPlacement() problems"
- Reply: Mike D Sutton: "Re: GetCharacterPlacement() problems"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 00:10:15 +0100
I'm getting very odd results when using the GCP_USEKERNING flag with GetCharacterPlacement() (either the ASCII or Wide versions of
the call) when combined with GCP_MAXEXTENT to handle word wrapping - It appears to be calculating the max extent of the string
incorrectly and returning a small number of characters able to be fit into the available space when there's space for plenty more.
Are these flags incompatible with one another or is this a bug?
Note; I've used GetFontLanguageInfo() to make sure that the selected font has a kerning table and am passing it's return value (with
FLI_GLYPHS masked off and GCP_MAXEXTENT appended) to the API call. With GCP_USEKERNING masked off too then I get correct results
but if possible I'd like to include this for better quality character positioning output - is there some trick to make them play
nicely together?
Cheers,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: http://www.mvps.org/EDais/
- Next message: DSKR: "'TrueType to Bitmap' problem"
- Previous message: Javier Martinez: "Remove the title bar"
- Next in thread: Mike D Sutton: "Re: GetCharacterPlacement() problems"
- Reply: Mike D Sutton: "Re: GetCharacterPlacement() problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|