| Index: src/ports/SkFontHost_FreeType.cpp
|
| ===================================================================
|
| --- src/ports/SkFontHost_FreeType.cpp (revision 12431)
|
| +++ src/ports/SkFontHost_FreeType.cpp (working copy)
|
| @@ -961,10 +961,12 @@
|
| }
|
|
|
| uint16_t SkScalerContext_FreeType::generateCharToGlyph(SkUnichar uni) {
|
| + SkAutoMutexAcquire ac(gFTMutex);
|
| return SkToU16(FT_Get_Char_Index( fFace, uni ));
|
| }
|
|
|
| SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) {
|
| + SkAutoMutexAcquire ac(gFTMutex);
|
| // iterate through each cmap entry, looking for matching glyph indices
|
| FT_UInt glyphIndex;
|
| SkUnichar charCode = FT_Get_First_Char( fFace, &glyphIndex );
|
|
|