Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
0da2a115
by Alexei Podtelezhnikov at 2021-12-13T11:44:24-05:00
3 changed files:
Changes:
... | ... | @@ -2736,9 +2736,7 @@ |
2736 | 2736 |
#endif
|
2737 | 2737 |
!face->postscript.isFixedPitch )
|
2738 | 2738 |
{
|
2739 |
- loader->widthp = tt_face_get_device_metrics( face,
|
|
2740 |
- size->metrics->x_ppem,
|
|
2741 |
- 0 );
|
|
2739 |
+ loader->widthp = size->widthp;
|
|
2742 | 2740 |
}
|
2743 | 2741 |
else
|
2744 | 2742 |
loader->widthp = NULL;
|
... | ... | @@ -1435,6 +1435,8 @@ |
1435 | 1435 |
size->ttmetrics.y_ratio = 0x10000L;
|
1436 | 1436 |
}
|
1437 | 1437 |
|
1438 |
+ size->widthp = tt_face_get_device_metrics( face, size_metrics->x_ppem, 0 );
|
|
1439 |
+ |
|
1438 | 1440 |
size->metrics = size_metrics;
|
1439 | 1441 |
|
1440 | 1442 |
#ifdef TT_USE_BYTECODE_INTERPRETER
|
... | ... | @@ -282,6 +282,8 @@ FT_BEGIN_HEADER |
282 | 282 |
|
283 | 283 |
TT_Size_Metrics ttmetrics;
|
284 | 284 |
|
285 |
+ FT_Byte* widthp; /* glyph widths from the hdmx table */
|
|
286 |
+ |
|
285 | 287 |
FT_ULong strike_index; /* 0xFFFFFFFF to indicate invalid */
|
286 | 288 |
|
287 | 289 |
#ifdef TT_USE_BYTECODE_INTERPRETER
|