Re: GetGlyphOutline API

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Having switched to UNICODE it started getting the wrong answer when
nChar=131 (but not others which I have detected so far).
....
So why is this?
Is it a bug?

Because 131 is interpreted by GetGlyphOutlineA
as a character in the current system code page (ansi code page).
If ansi the system is English US, ansi cp is 1252, and 131 (decimal)
is "single low-9 quotation mark", which most likely exists in your font.

But 131 is interpreted by GetGlyphOutlineW
as a Unicode. Which is a (non-visible) control character, most likely non-
existent as a glyph in any normal font.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.



Relevant Pages

  • Re: _stprintf
    ... I don't have the source code to StringCchPrintf. ... does NOT interpret the word 'character' this way. ... Try %c, in an ANSI ... code pages in special cases, e.g., %lc or %C format. ...
    (microsoft.public.vc.mfc)
  • Re: _stprintf
    ... I don't have the source code to StringCchPrintf. ... any bit value of your choice for the character value, ... ANSI code page 932 is an encoding just like other ANSI code pages such ... code pages in special cases, e.g., %lc or %C format. ...
    (microsoft.public.vc.mfc)
  • Re: ANSI Encoding 1252 - not all characters convert?
    ... Unicode code points) ... The first takes Unicode characters and converts to ansi bytes, ... For information on ASCII, ANSI, Unicode and how Encoding works see: ... > I have a string of characters that contains ANSI character values. ...
    (microsoft.public.dotnet.framework)
  • Re: Chinese characters appearing in my strings ?!!?!?!
    ... Usually this sort of thing comes down to fonts or text encoding. ... Are you using an English version of Windows and of Office? ... This will list each character ... followed by its ANSI code and then convert the ANSI ...
    (microsoft.public.access.modulesdaovba)
  • Re: Code Page problem in SetWindowText
    ... there are no API calls that take MBCS strings. ... ANSI or Unicode. ... SBCS = single byte character set ... So you can probably use the ANSI code page ...
    (microsoft.public.vc.mfc)