MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ClearTextMetrics

Function ClearTextMetrics

Source/Graphics/text.cpp:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262static void ClearTextMetrics(TextMetrics* metrics) {
263 metrics->advance[0] = 0;
264 metrics->advance[1] = 0;
265 metrics->bounds[0] = INT_MAX; // min horz
266 metrics->bounds[1] = INT_MIN; // max horz
267 metrics->bounds[2] = INT_MAX; // min vert
268 metrics->bounds[3] = INT_MIN; // max vert
269}
270
271static void ApplyGlyphSlotToTextMetrics(TextMetrics* metrics, FT_GlyphSlot slot) {
272 int glyph_bounds[4];

Callers 3

RenderTextMethod · 0.85
GetLetterPosXYMethod · 0.85
GetCursorPosMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected