Lines Matching refs:nCharCode
113 int GetCachedGlyphWidth( int nCharCode ) const;
114 void CacheGlyphWidth( int nCharCode, int nCharWidth );
128 inline void ImplWinFontEntry::CacheGlyphWidth( int nCharCode, int nCharWidth ) in CacheGlyphWidth() argument
130 maWidthMap[ nCharCode ] = nCharWidth; in CacheGlyphWidth()
133 inline int ImplWinFontEntry::GetCachedGlyphWidth( int nCharCode ) const in GetCachedGlyphWidth()
135 IntMap::const_iterator it = maWidthMap.find( nCharCode ); in GetCachedGlyphWidth()
414 unsigned nCharCode = pCodes[0]; local
415 bool bSurrogate = ((nCharCode >= 0xD800) && (nCharCode <= 0xDFFF));
419 if( nCharCode >= 0xDC00 )
425 nCharCode = 0x10000 + ((pCodes[0] - 0xD800) << 10) + (pCodes[1] - 0xDC00);
427 nCharCode = '?';
431 int nGlyphWidth = mrWinFontEntry.GetCachedGlyphWidth( nCharCode );
438 else if( ::GetCharABCWidthsW( mhDC, nCharCode, nCharCode, &aABC ) )
440 else if( !::GetCharWidth32W( mhDC, nCharCode, nCharCode, &nGlyphWidth )
441 && !::GetCharWidthW( mhDC, nCharCode, nCharCode, &nGlyphWidth ) )
443 mrWinFontEntry.CacheGlyphWidth( nCharCode, nGlyphWidth );
453 if( mrWinFontData.HasChar( nCharCode ) )