Commit c4e54cf
committed
Parse FontBBox in type1font.
... instead of having to go through ft2font in createType1Descriptor
just to extract the font bbox, ascender and descender.
FontBBox is gauranteed to exist in the type1 font definition by the
standard; its parsing as a size-4 array matches freetype's behavior (see
ps_parser_load_field); and using bbox entries as ascender and descender
also matches freetype's behavior (T1_Face_Init directly assigns
`root->ascender = (FT_Short)(root->bbox.yMax)` and likewise for the
descender; see also the docs for ascender and descender in FT_FaceRec).1 parent 1c881a3 commit c4e54cf
File tree
3 files changed
+21
-8
lines changed- doc/api/next_api_changes/deprecations
- lib/matplotlib
- backends
3 files changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
582 | 592 | | |
583 | 593 | | |
584 | 594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
| 1037 | + | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | | - | |
| 1044 | + | |
| 1045 | + | |
1045 | 1046 | | |
1046 | 1047 | | |
1047 | 1048 | | |
| |||
1076 | 1077 | | |
1077 | 1078 | | |
1078 | 1079 | | |
1079 | | - | |
1080 | | - | |
1081 | 1080 | | |
1082 | 1081 | | |
1083 | 1082 | | |
1084 | 1083 | | |
1085 | | - | |
| 1084 | + | |
1086 | 1085 | | |
1087 | | - | |
1088 | | - | |
| 1086 | + | |
| 1087 | + | |
1089 | 1088 | | |
1090 | 1089 | | |
1091 | 1090 | | |
1092 | 1091 | | |
1093 | 1092 | | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | | - | |
| 1095 | + | |
1097 | 1096 | | |
1098 | 1097 | | |
1099 | 1098 | | |
| |||
0 commit comments