MCPcopy Create free account
hub / github.com/Snapchat/Valdi / sskhbPosition

Function sskhbPosition

snap_drawing/src/snap_drawing/cpp/Text/Harfbuzz.cpp:137–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static hb_position_t sskhbPosition(SkScalar value) {
138 // Treat HarfBuzz hb_position_t as 16.16 fixed-point.
139 constexpr int kHbPosition1 = 1 << 16;
140 return SkScalarRoundToInt(value * kHbPosition1);
141}
142
143static hb_bool_t skhbGlyph(hb_font_t* /*hbFont*/,
144 void* fontData,

Callers 4

skhbGlyphHAdvanceFunction · 0.85
skhbGlyphHAdvancesFunction · 0.85
skhbGlyphExtentsFunction · 0.85
createSubFontMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected