Commit 0da2a115 authored by Alexei Podtelezhnikov's avatar Alexei Podtelezhnikov
Browse files

[truetype] Upstream the hdmx binary search.

* src/truetype/ttobjs.h (TT_SizeRec): Add `widthp` for the hdmx
widths.
* src/truetype/ttobjs.c (tt_size_reset): Initialize `widthp` even
though it might never be used by the interpreter.
* src/truetype/ttgload.c (tt_loader_init): Avoid repeated searches
in the hdmx table.
parent fd03dcc1
Pipeline #465132 passed with stage
in 8 minutes and 42 seconds
......@@ -2736,9 +2736,7 @@
#endif
!face->postscript.isFixedPitch )
{
loader->widthp = tt_face_get_device_metrics( face,
size->metrics->x_ppem,
0 );
loader->widthp = size->widthp;
}
else
loader->widthp = NULL;
......
......@@ -1435,6 +1435,8 @@
size->ttmetrics.y_ratio = 0x10000L;
}
size->widthp = tt_face_get_device_metrics( face, size_metrics->x_ppem, 0 );
size->metrics = size_metrics;
#ifdef TT_USE_BYTECODE_INTERPRETER
......
......@@ -282,6 +282,8 @@ FT_BEGIN_HEADER
TT_Size_Metrics ttmetrics;
FT_Byte* widthp; /* glyph widths from the hdmx table */
FT_ULong strike_index; /* 0xFFFFFFFF to indicate invalid */
#ifdef TT_USE_BYTECODE_INTERPRETER
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment