/external/skia/tools/ |
D | sk_tool_utils_font.cpp | 25 SkTestFontData& fontData = gTestFonts[index]; in release_portable_typefaces() local 26 SkSafeUnref(fontData.fFontCache); in release_portable_typefaces() 33 SkTestFontData* fontData = nullptr; in create_font() local 39 fontData = &sub->fFont; in create_font() 43 if (!fontData) { in create_font() 54 fontData = &sub->fFont; in create_font() 59 if (fontData->fFontCache) { in create_font() 60 font = SkSafeRef(fontData->fFontCache); in create_font() 62 font = new SkTestFont(*fontData); in create_font() 65 fontData->fFontCache = SkSafeRef(font); in create_font()
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
D | fpdf_page_doc.cpp | 148 CPDF_CountedFont* fontData = it.second; in Clear() local 149 if (!fontData->get()) in Clear() 152 if (bForceRelease || fontData->use_count() < 2) { in Clear() 153 fontData->clear(); in Clear() 228 CPDF_CountedFont* fontData = nullptr; in GetFont() local 231 fontData = it->second; in GetFont() 232 if (fontData->get()) { in GetFont() 233 return fontData->AddRef(); in GetFont() 241 if (!fontData) { in GetFont() 242 fontData = new CPDF_CountedFont(pFont); in GetFont() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
D | GlyphLayout.java | 87 BitmapFontData fontData = font.data; in setText() local 88 boolean markupEnabled = fontData.markupEnabled; in setText() 141 fontData.getGlyphs(run, str, runStart, runEnd, colorRun); in setText() 155 … && x - xAdvance + (run.glyphs.get(i - 1).xoffset + run.glyphs.get(i - 1).width) * fontData.scaleX in setText() 159 truncate(fontData, run, targetWidth, truncate, i, glyphRunPool); in setText() 164 int wrapIndex = fontData.getWrapIndex(run.glyphs, i); in setText() 173 next = wrap(fontData, run, glyphRunPool, wrapIndex, i); in setText() 180 y += fontData.down; in setText() 198 y += fontData.down; in setText() 236 this.height = fontData.capHeight + lines * fontData.lineHeight; in setText() [all …]
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/bmfont/ |
D | BitmapFontWriter.java | 150 …public static void writeFont (BitmapFontData fontData, String[] pageRefs, FileHandle outFntFile, F… in writeFont() argument 157 int lineHeight = (int)fontData.lineHeight; in writeFont() 160 int base = (int)((fontData.capHeight) + (fontData.flipped ? -fontData.ascent : fontData.ascent)); in writeFont() 206 for (int i = 0; i < fontData.glyphs.length; i++) { in writeFont() 207 if (fontData.glyphs[i] == null) continue; in writeFont() 209 for (int j = 0; j < fontData.glyphs[i].length; j++) { in writeFont() 210 if (fontData.glyphs[i][j] != null) { in writeFont() 211 glyphs.add(fontData.glyphs[i][j]); in writeFont() 238 …quote(String.format("%-5s", fontData.flipped ? g.yoffset + padTop : -(g.height + (g.yoffset + padT… in writeFont() 294 …public static void writeFont (BitmapFontData fontData, Pixmap[] pages, FileHandle outFntFile, Font… in writeFont() argument [all …]
|
/external/skia/src/sfnt/ |
D | SkOTUtils.cpp | 36 SkData* SkOTUtils::RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen) { in RenameFont() argument 40 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) { in RenameFont() 49 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) { in RenameFont() 60 if (!fontData->rewind()) { in RenameFont() 83 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize; in RenameFont() 89 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) { in RenameFont() 92 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) { in RenameFont() 95 …if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDat… in RenameFont()
|
D | SkOTUtils.h | 39 static SkData* RenameFont(SkStreamAsset* fontData, const char* fontName, int fontNameLen);
|
/external/skia/src/fonts/ |
D | SkTestScalerContext.cpp | 20 SkTestFont::SkTestFont(const SkTestFontData& fontData) in SkTestFont() argument 22 , fCharCodes(fontData.fCharCodes) in SkTestFont() 23 , fCharCodesCount(fontData.fCharCodesCount) in SkTestFont() 24 , fWidths(fontData.fWidths) in SkTestFont() 25 , fMetrics(fontData.fMetrics) in SkTestFont() 26 , fName(fontData.fName) in SkTestFont() 29 init(fontData.fPoints, fontData.fVerbs); in SkTestFont()
|
/external/skia/src/core/ |
D | SkFontDescriptor.cpp | 132 SkAutoTDelete<SkStreamAsset> fontData(fFontData->detachStream()); in serialize() local 133 size_t length = fontData->getLength(); in serialize() 135 stream->writeStream(fontData, length); in serialize()
|
D | SkAdvancedTypefaceMetrics.cpp | 311 void* fontData, 315 bool (*getAdvance)(void* fontData, int gId, int16_t* data));
|
/external/skia/src/pdf/ |
D | SkPDFFont.cpp | 594 SkAutoTDelete<SkStream> fontData(typeface->openStream(&ttcIndex)); in get_subset_font_stream() local 595 SkASSERT(fontData.get()); in get_subset_font_stream() 597 size_t fontSize = fontData->getLength(); in get_subset_font_stream() 603 if (fontData->read(originalFont.begin(), fontSize) == fontSize) { in get_subset_font_stream() 627 fontData->rewind(); in get_subset_font_stream() 630 *fontStream = new SkPDFStream(fontData.get()); in get_subset_font_stream() 1077 SkAutoTDelete<SkStreamAsset> fontData( in addFontDescriptor() local 1079 SkASSERT(fontData); in addFontDescriptor() 1080 fontSize = fontData->getLength(); in addFontDescriptor() 1082 fontStream.reset(new SkPDFSharedStream(fontData.detach())); in addFontDescriptor() [all …]
|
/external/skia/src/utils/ |
D | SkWhitelistTypefaces.cpp | 66 SkFontData* fontData = tf->createFontData(); in compute_checksum() local 67 if (!fontData) { in compute_checksum() 70 SkStreamAsset* fontStream = fontData->getStream(); in compute_checksum()
|
/external/skia/tests/ |
D | FontHostStreamTest.cpp | 100 SkAutoTDelete<SkStreamAsset> fontData(origTypeface->openStream(&ttcIndex)); in DEF_TEST() local 101 SkTypeface* streamTypeface = SkTypeface::CreateFromStream(fontData.detach()); in DEF_TEST()
|
/external/libgdx/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/ |
D | FreeType.java | 50 LongMap<ByteBuffer> fontData = new LongMap<ByteBuffer>(); field in FreeType.Library 59 for(ByteBuffer buffer: fontData.values()) { in dispose() 86 fontData.put(face, buffer); in newMemoryFace() 123 ByteBuffer buffer = library.fontData.get(address); in dispose() 125 library.fontData.remove(address); in dispose()
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/ui/ |
D | ComponentsView.java | 272 FontData[] fontData = (font==null ? JFaceResources.getDefaultFont() : font).getFontData(); in getBoldFont() local 273 FontData boldFontData = new FontData(fontData[0].getName(), fontData[0].getHeight(), SWT.BOLD); in getBoldFont()
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/extensions/ |
D | FreeTypeTest.java | 61 FreeTypeBitmapFontData fontData = generator.generateData(parameter); in create() local
|
/external/pdfium/xfa/src/fwl/src/theme/ |
D | widgettp.cpp | 761 CFWL_FontData* fontData = new CFWL_FontData; in FindFont() local 762 if (!fontData->LoadFont(wsFontFamily, dwFontStyles, wCodePage)) { in FindFont() 763 delete fontData; in FindFont() 766 m_arrFonts.Add(fontData); in FindFont() 767 return fontData->GetFont(); in FindFont()
|
/external/skia/src/ports/ |
D | SkFontMgr_fontconfig.cpp | 868 SkTypeface* onCreateFromFontData(SkFontData* fontData) const override { in onCreateFromFontData() 869 SkStreamAsset* stream(fontData->getStream()); in onCreateFromFontData() 875 const int ttcIndex = fontData->getIndex(); in onCreateFromFontData() 882 return new SkTypeface_stream(fontData, style, isFixedWidth); in onCreateFromFontData()
|
D | SkFontHost_mac.cpp | 2505 static CFDictionaryRef get_axes(CGFontRef cg, SkFontData* fontData) { in get_axes() argument 2512 if (0 == axisCount || axisCount != fontData->getAxisCount()) { in get_axes() 2519 for (int i = 0; i < fontData->getAxisCount(); ++i) { in get_axes() 2549 double value = SkTPin(SkFixedToDouble(fontData->getAxis()[i]), minDouble, maxDouble); in get_axes() 2559 SkAutoTDelete<SkFontData> fontData(data); in onCreateFromFontData() local 2560 SkStreamAsset* stream = fontData->detachStream(); in onCreateFromFontData() 2570 AutoCFRelease<CFDictionaryRef> cgVariations(get_axes(cg, fontData)); in onCreateFromFontData()
|
D | SkFontHost_win.cpp | 1908 static HANDLE activate_font(SkData* fontData) { in activate_font() argument 1911 HANDLE fontHandle = AddFontMemResourceEx(const_cast<void*>(fontData->data()), in activate_font() 1912 static_cast<DWORD>(fontData->size()), in activate_font()
|
/external/skia/src/device/xps/ |
D | SkXPSDevice.cpp | 140 , fontData(nullptr) in TypefaceUse() 365 (unsigned char *) current->fontData->getMemoryBase(), in subset_typeface() 366 (unsigned long) current->fontData->getLength(), in subset_typeface() 1899 SkStream* fontData = typeface->openStream(&ttcIndex); in CreateTypefaceUse() local 1901 HRM(SkIStream::CreateFromSkStream(fontData, true, &fontStream), in CreateTypefaceUse() 1924 uint8_t* data = (uint8_t*)fontData->getMemoryBase(); in CreateTypefaceUse() 1926 fontData->getLength() >= sizeof(SkTTCFHeader) && in CreateTypefaceUse() 1932 newTypefaceUse.fontData = fontData; in CreateTypefaceUse()
|
/external/skia/include/device/xps/ |
D | SkXPSDevice.h | 145 SkStream* fontData; variable
|