/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_vector.cpp | 640 // get glyph from glyph cache in GetGlyphNode() 760 FT_GlyphSlot slot = ftFaces_[fontId]->glyph; in SetBold() 764 if (ftFaces_[fontId]->glyph->format == FT_GLYPH_FORMAT_OUTLINE) { in SetBold() 772 } else if (ftFaces_[fontId]->glyph->format == FT_GLYPH_FORMAT_BITMAP) { in SetBold() 798 if ((error != 0) || (ftFaces_[fontId]->glyph->glyph_index == 0)) { in LoadGlyphIntoFace() 806 glyphNode.left = faceInfo.face->glyph->bitmap_left; in LoadGlyphIntoFace() 807 glyphNode.top = faceInfo.face->glyph->bitmap_top; in LoadGlyphIntoFace() 808 glyphNode.cols = faceInfo.face->glyph->bitmap.width; in LoadGlyphIntoFace() 809 glyphNode.rows = faceInfo.face->glyph in LoadGlyphIntoFace() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | font.cpp | 187 uint16_t glyph = UnicharToGlyph(unicode); in MeasureSingleCharacter() local 188 if (glyph != 0) { in MeasureSingleCharacter() 189 textWidth = MeasureText(&glyph, sizeof(uint16_t), TextEncoding::GLYPH_ID); in MeasureSingleCharacter() 231 bool Font::GetPathForGlyph(uint16_t glyph, Path* path) const in GetPathForGlyph() argument 233 return fontImpl_->GetPathForGlyph(glyph, path); in GetPathForGlyph()
|
/foundation/graphic/graphic_3d/lume/LumeFont/src/ |
H A D | font_manager.cpp | 389 int FontManager::UpdateAtlas(FontDefs::Glyph& glyph, const FT_Bitmap& bitmap, bool inColor) in UpdateAtlas() argument 417 AddGlyphToColumn(glyph, bestFitAtlas, hdr, bitmap, bestFitColumnPos); in UpdateAtlas() 428 AddGlyphToColumn(glyph, i, hdr, bitmap, 0); in UpdateAtlas() 480 Glyph& glyph, size_t atlasIndex, ColumnHeader& hdr, const FT_Bitmap& bitmap, uint32_t columnX) in AddGlyphToColumn() 490 glyph.atlas.index = static_cast<uint16_t>(atlasIndex); in AddGlyphToColumn() 491 glyph.atlas.rect.x = static_cast<uint16_t>(x); in AddGlyphToColumn() 492 glyph.atlas.rect.y = static_cast<uint16_t>(y); in AddGlyphToColumn() 493 glyph.atlas.rect.w = static_cast<uint16_t>(width); in AddGlyphToColumn() 494 glyph.atlas.rect.h = static_cast<uint16_t>(height); in AddGlyphToColumn() 479 AddGlyphToColumn( Glyph& glyph, size_t atlasIndex, ColumnHeader& hdr, const FT_Bitmap& bitmap, uint32_t columnX) AddGlyphToColumn() argument
|
H A D | font_manager.h | 76 * fit glyph to atlas 81 int UpdateAtlas(FontDefs::Glyph& glyph, const FT_Bitmap&, bool inColor); 105 * glyph as first element there 107 * the glyph there 111 * if ( atlas format is glyph format ) { 113 * if ( column has glyph height free and is wider or equal to glyph width ) { 114 * if ( column width exactly glyph width ) { 115 * insert glyph to this column and return 122 * insert glyph t [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_font.cpp | 259 bool SkiaFont::GetPathForGlyph(uint16_t glyph, Path* path) const in GetPathForGlyph() argument 268 bool ret = skFont_.getPath(glyph, &skpath); in GetPathForGlyph() 270 LOGW("no path found for glyph:%{public}hu", glyph); in GetPathForGlyph() 274 LOGD("glyph:%{public}hu path = %s", glyph, path->ConvertToSVGString().c_str()); in GetPathForGlyph()
|
H A D | skia_font.h | 76 bool GetPathForGlyph(uint16_t glyph, Path* path) const override;
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/text_blob_napi/ |
H A D | js_text_blob.cpp | 175 uint32_t glyph = 0; in OnMakeRunBuffer() local 178 napi_get_named_property(env, tempRunBuffer, "glyph", &tempValue); in OnMakeRunBuffer() 179 bool isGlyphOk = ConvertFromJsValue(env, tempValue, glyph); in OnMakeRunBuffer() 188 runBuffer.glyphs[i] = (uint16_t)glyph; in OnMakeRunBuffer()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/ |
H A D | font.h | 89 * @brief Set to increase stroke width when creating glyph bitmaps to approximate a bold typeface. 107 * @brief Set Font and glyph metrics should ignore hinting and rounding. 120 * @brief Retrieves the advance and bounds for each glyph in glyphs. 121 * @param glyphs Array of glyph indices to be measured 123 * @param widths Text advances for each glyph returned to the caller. 128 * @brief Retrieves the advance and bounds for each glyph in glyphs. 129 * @param glyphs Array of glyph indices to be measured 131 * @param widths Text advances for each glyph returned to the caller. 132 * @param bounds Bounds for each glyph relative to (0, 0) returned to the caller. 203 * @brief Returns true if font and glyph metric [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_font.h | 64 /** glyph outlines unchanged */ 68 /** glyph outlines modified to improve contrast */ 70 /** modifies glyph outlines for maximum contrast */ 81 /** no transparent pixels on glyph edges */ 83 /** may have transparent pixels on glyph edges */ 85 /** glyph positioned in pixel using transparency */ 214 * @brief Converts text into glyph indices. 221 * @param glyphs Indicates the storage for glyph indices. 223 * @return Returns the number of glyph indices represented by text. 231 * @brief Retrieves the advance for each glyph i [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | font_impl.h | 72 virtual bool GetPathForGlyph(uint16_t glyph, Path* path) const = 0;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | core_canvas.cpp | 364 uint16_t glyph = font.UnicharToGlyph(unicode); in DrawSingleCharacter() local 365 if (glyph != 0) { in DrawSingleCharacter() 366 drawSingleCharacterProc(glyph, font); in DrawSingleCharacter()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/font_fuzzer/ |
H A D | font_fuzzer.cpp | 292 uint16_t glyph = GetObject<uint16_t>(); in FontFuzzTest009() local 293 font.GetPathForGlyph(glyph, path); in FontFuzzTest009()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_font.cpp | 426 OH_Drawing_ErrorCode OH_Drawing_FontGetPathForGlyph(const OH_Drawing_Font* cFont, uint16_t glyph, in OH_Drawing_FontGetPathForGlyph() argument 433 if (!font->GetPathForGlyph(glyph, reinterpret_cast<Path*>(path))) { in OH_Drawing_FontGetPathForGlyph()
|