Searched defs:fontName (Results 1 - 13 of 13) sorted by relevance

/external/icu4c/samples/layout/
H A DGDIFontMap.cpp29 const LEFontInstance *GDIFontMap::openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status) argument
31 LEFontInstance *result = new GDIFontInstance(fSurface, fontName, pointSize, status);
H A DGnomeFontMap.cpp31 const LEFontInstance *GnomeFontMap::openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status) argument
33 LEFontInstance *result = new GnomeFontInstance(fEngine, fontName, pointSize, status);
H A DFontMap.cpp40 char *c, *scriptName, *fontName, *line, buffer[BUFFER_SIZE]; local
64 fontName = strip(&c[1]);
68 defaultFont = getFontIndex(fontName);
89 fFontIndices[script] = getFontIndex(fontName);
127 le_int32 FontMap::getFontIndex(const char *fontName) argument
132 if (strcmp(fontName, fFontNames[index]) == 0) {
164 le_int32 len = strlen(fontName);
167 fFontNames[index] = strcpy(s, fontName);
/external/skia/src/animator/
H A DSkPaintParts.h76 return SkTypeface::CreateFromName(fontName.c_str(), style); }
79 SkString fontName; member in class:SkDrawTypeface
/external/webkit/WebKit/chromium/tests/
H A DUniscribeHelperTest.cpp51 HFONT MakeFont(const wchar_t* fontName, SCRIPT_CACHE** cache) argument
56 wcscpy_s(lf.lfFaceName, fontName);
/external/webkit/WebCore/platform/graphics/wince/
H A DFontCustomPlatformData.cpp34 bool renameFont(SharedBuffer* fontData, const String& fontName);
70 String fontName(fontNameVector.data(), fontNameVector.size());
71 return fontName.replace('/', '_');
77 String fontName = createUniqueFontName(); local
79 if (renameFont(localBuffer.get(), fontName) && g_customFontCache->registerFont(fontName, localBuffer.get()))
80 return new FontCustomPlatformData(fontName);
/external/webkit/WebCore/platform/graphics/chromium/
H A DFontCustomPlatformData.cpp187 String fontName = createUniqueFontName(); local
188 HANDLE fontReference = renameAndActivateFont(buffer, fontName);
191 return new FontCustomPlatformData(fontReference, fontName);
/external/icu4c/test/letest/
H A Dgendata.cpp39 const char *fontName; member in struct:TestInput
192 char *fontName = getCString(element->getAttribute(name_attr)); local
194 PortableFontInstance *pfi = new PortableFontInstance(fontName, 12, leStatus);
197 printf("Error: could not open font: %s\n", fontName);
198 freeCString(fontName);
211 fontName, uversion, pfi->getFontChecksum());
217 fontName, version, pfi->getFontChecksum());
222 freeCString(fontName);
H A Dxmlreader.cpp171 char *fontName = NULL; local
204 fontName = getCString(element->getAttribute(name_attr));
238 (*callback)(id, fontName, fontVer, fontCksum, scriptCode, languageCode, text.getBuffer(), charCount, &expected);
248 freeCString(fontName);
H A Dcletest.c394 static le_font *openFont(const char *fontName, const char *checksum, const char *version, const char *testID) argument
400 if (fontName != NULL) {
401 font = le_portableFontOpen(getPath(path, fontName), 12, &fontStatus);
404 log_info("Test %s: can't open font %s - test skipped.\n", testID, fontName);
439 const char *fontName,
450 le_font *font = openFont(fontName, fontChecksum, fontVersion, testID);
459 if (fontName == NULL) {
438 doTestCase(const char *testID, const char *fontName, const char *fontVersion, const char *fontChecksum, le_int32 scriptCode, le_int32 languageCode, const LEUnicode *text, le_int32 charCount, TestResult *expected) argument
H A Dletest.cpp538 LEFontInstance *openFont(const char *fontName, const char *checksum, const char *version, const char *testID) argument
545 font = new PortableFontInstance(getPath(path, fontName), 12, fontStatus);
548 log_info("Test %s: can't open font %s - test skipped.\n", testID, fontName);
638 char *fontName = getCString(element->getAttribute(name_attr)); local
642 font = openFont(fontName, fontCksum, fontVer, id);
645 freeCString(fontName);
/external/webkit/WebCore/platform/graphics/win/
H A DFontCustomPlatformData.cpp214 String fontName = createUniqueFontName(); local
230 LONG loadEmbeddedFontResult = TTLoadEmbeddedFont(&fontReference, TTLOAD_PRIVATE, &privStatus, LICENSE_PREVIEWPRINT, &status, readEmbedProc, &eotStream, const_cast<LPWSTR>(fontName.charactersWithNullTermination()), 0, 0);
232 fontName = String();
234 fontReference = renameAndActivateFont(buffer, fontName);
239 return new FontCustomPlatformData(cgFont.releaseRef(), fontReference, fontName);
/external/webkit/WebCore/platform/graphics/opentype/
H A DOpenTypeUtilities.cpp344 // adds fontName to the font table in fontData, and writes the new font table to rewrittenFontTable
346 static size_t renameFontInternal(SharedBuffer* fontData, const String& fontName, Vector<char> &rewrittenFontData) argument
362 size_t nameTableSize = ((offsetof(nameTable, nameRecords) + nameRecordCount * sizeof(nameRecord) + fontName.length() * sizeof(UChar)) & ~3) + 4;
383 name->nameRecords[i].length = fontName.length() * sizeof(UChar);
393 for (unsigned i = 0; i < fontName.length(); ++i)
394 reinterpret_cast<BigEndianUShort*>(data + originalDataSize + name->stringOffset)[i] = fontName[i];
407 bool renameFont(SharedBuffer* fontData, const String& fontName) argument
419 if (!renameFontInternal(fontData, fontName, rewrittenFontData))
428 HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName) argument
431 size_t nameTableSize = renameFontInternal(fontData, fontName, rewrittenFontDat
[all...]

Completed in 125 milliseconds