Home
last modified time | relevance | path

Searched refs:fontName (Results 1 – 25 of 46) sorted by relevance

12

/external/webkit/Source/WebCore/platform/graphics/wince/
DFontCustomPlatformData.cpp35 bool renameFont(SharedBuffer* fontData, const String& fontName);
68 String fontName = base64Encode(reinterpret_cast<char*>(&fontUuid), sizeof(fontUuid)); in createUniqueFontName() local
69 ASSERT(fontName.length() < LF_FACESIZE); in createUniqueFontName()
70 return fontName.replace('/', '_'); in createUniqueFontName()
76 String fontName = createUniqueFontName(); in createFontCustomPlatformData() local
78 …if (renameFont(localBuffer.get(), fontName) && g_customFontCache->registerFont(fontName, localBuff… in createFontCustomPlatformData()
79 return new FontCustomPlatformData(fontName); in createFontCustomPlatformData()
DFontCustomPlatformData.h38 virtual bool registerFont(const String& fontName, const SharedBuffer*) = 0;
39 virtual void unregisterFont(const String& fontName) = 0;
/external/icu4c/samples/layout/
DFontMap.cpp40 char *c, *scriptName, *fontName, *line, buffer[BUFFER_SIZE]; in FontMap() local
64 fontName = strip(&c[1]); in FontMap()
68 defaultFont = getFontIndex(fontName); in FontMap()
89 fFontIndices[script] = getFontIndex(fontName); in FontMap()
127 le_int32 FontMap::getFontIndex(const char *fontName) in getFontIndex() argument
132 if (strcmp(fontName, fFontNames[index]) == 0) { in getFontIndex()
164 le_int32 len = strlen(fontName); in getFontIndex()
167 fFontNames[index] = strcpy(s, fontName); in getFontIndex()
DGDIFontMap.cpp29 const LEFontInstance *GDIFontMap::openFont(const char *fontName, le_int16 pointSize, LEErrorCode &s… in openFont() argument
31 LEFontInstance *result = new GDIFontInstance(fSurface, fontName, pointSize, status); in openFont()
DGnomeFontMap.cpp31 const LEFontInstance *GnomeFontMap::openFont(const char *fontName, le_int16 pointSize, LEErrorCode … in openFont() argument
33 LEFontInstance *result = new GnomeFontInstance(fEngine, fontName, pointSize, status); in openFont()
DFontMap.h37 …virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &stat…
43 le_int32 getFontIndex(const char *fontName);
DGDIFontMap.h32 …virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &stat…
DGnomeFontMap.h32 …virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &stat…
/external/webkit/Source/WebCore/platform/graphics/win/
DFontCustomPlatformData.cpp160 String fontName = base64Encode(reinterpret_cast<char*>(&fontUuid), sizeof(fontUuid)); in createUniqueFontName() local
161 ASSERT(fontName.length() < LF_FACESIZE); in createUniqueFontName()
162 return fontName; in createUniqueFontName()
185 String fontName = createUniqueFontName(); in createFontCustomPlatformData() local
201 …SE_PREVIEWPRINT, &status, readEmbedProc, &eotStream, const_cast<LPWSTR>(fontName.charactersWithNul… in createFontCustomPlatformData()
203 fontName = String(); in createFontCustomPlatformData()
205 fontReference = renameAndActivateFont(buffer, fontName); in createFontCustomPlatformData()
210 return new FontCustomPlatformData(fontReference, fontName); in createFontCustomPlatformData()
/external/icu4c/test/letest/
Dgendata.cpp39 const char *fontName; member
192 char *fontName = getCString(element->getAttribute(name_attr)); in main() local
194 PortableFontInstance *pfi = new PortableFontInstance(fontName, 12, leStatus); in main()
197 printf("Error: could not open font: %s\n", fontName); in main()
198 freeCString(fontName); in main()
211 fontName, uversion, pfi->getFontChecksum()); in main()
217 fontName, version, pfi->getFontChecksum()); in main()
222 freeCString(fontName); in main()
Dcletest.c394 static le_font *openFont(const char *fontName, const char *checksum, const char *version, const cha… in openFont() argument
400 if (fontName != NULL) { in openFont()
401 font = le_portableFontOpen(getPath(path, fontName), 12, &fontStatus); in openFont()
404 log_info("Test %s: can't open font %s - test skipped.\n", testID, fontName); in openFont()
439 const char *fontName, in doTestCase() argument
450 le_font *font = openFont(fontName, fontChecksum, fontVersion, testID); in doTestCase()
459 if (fontName == NULL) { in doTestCase()
Dxmlreader.cpp171 char *fontName = NULL; in readTestFile() local
204 fontName = getCString(element->getAttribute(name_attr)); in readTestFile()
238 …(*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCoun… in readTestFile()
248 freeCString(fontName); in readTestFile()
Dxmlreader.h14 const char *fontName,
Dletest.cpp538 LEFontInstance *openFont(const char *fontName, const char *checksum, const char *version, const cha… in openFont() argument
545 font = new PortableFontInstance(getPath(path, fontName), 12, fontStatus); in openFont()
548 log_info("Test %s: can't open font %s - test skipped.\n", testID, fontName); in openFont()
638 char *fontName = getCString(element->getAttribute(name_attr)); in DataDrivenTest() local
642 font = openFont(fontName, fontCksum, fontVer, id); in DataDrivenTest()
645 freeCString(fontName); in DataDrivenTest()
/external/webkit/Source/WebCore/platform/graphics/skia/
DFontCustomPlatformData.cpp121 String fontName = base64Encode(reinterpret_cast<char*>(&fontUuid), sizeof(fontUuid)); in createUniqueFontName() local
122 ASSERT(fontName.length() < LF_FACESIZE); in createUniqueFontName()
123 return fontName; in createUniqueFontName()
185 String fontName = createUniqueFontName(); in createFontCustomPlatformData() local
186 HANDLE fontReference = renameAndActivateFont(buffer, fontName); in createFontCustomPlatformData()
189 return new FontCustomPlatformData(fontReference, fontName); in createFontCustomPlatformData()
/external/freetype/include/freetype/
Dftmac.h130 FT_GetFile_From_Mac_Name( const char* fontName,
158 FT_GetFile_From_Mac_ATS_Name( const char* fontName,
189 FT_GetFilePath_From_Mac_ATS_Name( const char* fontName,
/external/webkit/Source/WebCore/platform/graphics/opentype/
DOpenTypeUtilities.cpp346 static size_t renameFontInternal(SharedBuffer* fontData, const String& fontName, Vector<char> &rewr… in renameFontInternal() argument
362 …fsetof(nameTable, nameRecords) + nameRecordCount * sizeof(nameRecord) + fontName.length() * sizeof… in renameFontInternal()
383 name->nameRecords[i].length = fontName.length() * sizeof(UChar); in renameFontInternal()
393 for (unsigned i = 0; i < fontName.length(); ++i) in renameFontInternal()
394 … reinterpret_cast<BigEndianUShort*>(data + originalDataSize + name->stringOffset)[i] = fontName[i]; in renameFontInternal()
407 bool renameFont(SharedBuffer* fontData, const String& fontName) in renameFont() argument
419 if (!renameFontInternal(fontData, fontName, rewrittenFontData)) in renameFont()
428 HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName) in renameAndActivateFont() argument
431 size_t nameTableSize = renameFontInternal(fontData, fontName, rewrittenFontData); in renameAndActivateFont()
/external/webkit/Source/WebCore/loader/cache/
DCachedFont.cpp148 SVGFontElement* CachedFont::getSVGFontById(const String& fontName) const in getSVGFontById()
165 if (fontName.isEmpty()) in getSVGFontById()
170 if (element->getIdAttribute() == fontName) in getSVGFontById()
/external/webkit/Tools/DumpRenderTree/mac/
DTextInputController.m77 || aSelector == @selector(addFontAttribute:fontName:size:)
78 || aSelector == @selector(addFontAttribute:fontName:size:from:length:))
99 if (aSelector == @selector(addFontAttribute:fontName:size:))
101 if (aSelector == @selector(addFontAttribute:fontName:size:from:length:))
143 - (void)addFontAttribute:(NSString *)attrName fontName:(NSString *)fontName size:(float)fontSize
145 …[self addAttribute:attrName value:[NSFont fontWithName:fontName size:fontSize] range:NSMakeRange(0…
148 - (void)addFontAttribute:(NSString *)attrName fontName:(NSString *)fontName size:(float)fontSize fr…
150 …[self addAttribute:attrName value:[NSFont fontWithName:fontName size:fontSize] range:NSMakeRange((…
/external/skia/src/animator/
DSkPaintParts.cpp83 SK_MEMBER(fontName, String),
104 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str()); in dump()
DSkPaintParts.h76 return SkTypeface::CreateFromName(fontName.c_str(), style); } in getTypeface()
79 SkString fontName; variable
/external/webkit/Source/WebKit/chromium/tests/
DUniscribeHelperTest.cpp51 HFONT MakeFont(const wchar_t* fontName, SCRIPT_CACHE** cache) in MakeFont() argument
56 wcscpy_s(lf.lfFaceName, fontName); in MakeFont()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DFontUtilsChromiumWin.cpp47 bool isFontPresent(const UChar* fontName) in isFontPresent() argument
50 fontName); in isFontPresent()
63 return !wcscmp(fontName, actualFontName); in isFontPresent()
/external/webkit/Source/WebCore/platform/gtk/
DRenderThemeGtk.cpp435 GOwnPtr<gchar> fontName; in systemFont() local
436 g_object_get(settings, "gtk-font-name", &fontName.outPtr(), NULL); in systemFont()
438 PangoFontDescription* pangoDescription = pango_font_description_from_string(fontName.get()); in systemFont()
/external/webkit/Source/WebCore/platform/mac/
DWebFontCache.mm108 static inline void fixUpWeight(NSInteger& weight, NSString *fontName)
112 UNUSED_PARAM(fontName);
114 …if (weight == 3 && [fontName rangeOfString:@"ultralight" options:NSCaseInsensitiveSearch | NSBackw…

12