Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
22a0cccb
by Werner Lemberg at 2022-03-19T06:40:17+01:00
1 changed file:
Changes:
... | ... | @@ -2527,6 +2527,15 @@ |
2527 | 2527 | #endif
|
2528 | 2528 | |
2529 | 2529 | |
2530 | + /* only use lower 31 bits together with sign bit */
|
|
2531 | + if ( face_index > 0 )
|
|
2532 | + face_index &= 0x7FFFFFFFL;
|
|
2533 | + else
|
|
2534 | + {
|
|
2535 | + face_index &= 0x7FFFFFFFL;
|
|
2536 | + face_index = -face_index;
|
|
2537 | + }
|
|
2538 | + |
|
2530 | 2539 | #ifdef FT_DEBUG_LEVEL_TRACE
|
2531 | 2540 | FT_TRACE3(( "FT_Open_Face: " ));
|
2532 | 2541 | if ( face_index < 0 )
|