GetTextExtentExPoint slow for characters greater than codepoint 127
- From: "David Liebtag" <DavidLiebtag@xxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 21:29:37 -0500
GetTextExtentExPointW seems to be significantly slower on strings that
contains codepoints above 127. For a string containing 30,000 characters
where 44 percent of them (13251) are composed of codepoints from the list
below, GetTextExtentExPointW is 37% slower than when called with a 30,000
character string composed of only characters below codepoint 127.
Is this a known problem and is there any work-around?
I am building an editor that supports proportional fonts and I am trying to
use GetTextExtentExPointW to determine which characters within strings fits
within my window. I noticed the problem because scrolling horizontally is
visibly much slower if the data being edited contains characters above 127.
Thank you.
David Liebtag
IBM APL Products and Services
The codepoints that I've noticed cause performance degradation:
U00C7 U00E9 U00E2 U00E4 U00E0 U00E5 U00E7 U00EA U00EB
U00E8 U00EF U00EE U00EC U00C4 U00C5 U00F4 U00F6 U00F2
U00FB U00F9 U00D6 U00DC U00A3 U20A7 U00E1 U00ED U00F3
U00FA U00F1 U00D1 U00BF U00A1 U00CC U00DF U00FC U237A
U005E U2340 U233F U2308 U25CB U22A5 U2207 U236B U2206
U22C4 U00F7 U2339 U2193 U00A8 U2282 U22A4 U220A U234E
U230A U2355 U2352 U234B U2265 U00AF U2336 U2229 U2373
U2218 U235D U2190 U2264 U235F U22A2 U2261 U007C U2372
U2371 U2260 U2375 U2228 U2283 U235E U2395 U233B U2342
U0027 U2192 U233D U2374 U22A3 U005C U2296 U0021 U2337
U2191 U00D7 U2349 U2235 U005F U2359 U2377 U2378 U222A
.
- Follow-Ups:
- Re: GetTextExtentExPoint slow for characters greater than codepoint 127
- From: Feng Yuan [MSFT]
- Re: GetTextExtentExPoint slow for characters greater than codepoint 127
- Next by Date: Re: CreateDIBSection for large files
- Next by thread: Re: GetTextExtentExPoint slow for characters greater than codepoint 127
- Index(es):
Relevant Pages
|