Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pango
Commits
7c337859
Commit
7c337859
authored
Nov 17, 2021
by
Matthias Clasen
Browse files
Merge branch 'matthiasc/for-main' into 'main'
build: Bump the harfbuzz req See merge request
!511
parents
ac8f01fe
b3dd3103
Pipeline
#333865
passed with stages
in 9 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
meson.build
View file @
7c337859
...
...
@@ -228,7 +228,7 @@ pango_deps = []
glib_req_version = '>= 2.62'
fribidi_req_version = '>= 1.0.6'
libthai_req_version = '>= 0.1.9'
harfbuzz_req_version = '>= 2.
2
.0'
harfbuzz_req_version = '>= 2.
6
.0'
fontconfig_req_version = '>= 2.13.0'
xft_req_version = '>= 2.0.0'
cairo_req_version = '>= 1.12.10'
...
...
pango/pangofc-font.c
View file @
7c337859
...
...
@@ -331,10 +331,11 @@ pango_fc_font_get_coverage (PangoFont *font,
*/
static
void
get_face_metrics
(
PangoFcFont
*
fcfont
,
PangoFontMetrics
*
metrics
)
PangoFontMetrics
*
metrics
)
{
hb_font_t
*
hb_font
=
pango_font_get_hb_font
(
PANGO_FONT
(
fcfont
));
hb_font_extents_t
extents
;
hb_position_t
position
;
FcMatrix
*
fc_matrix
;
gboolean
have_transform
=
FALSE
;
...
...
@@ -342,10 +343,10 @@ get_face_metrics (PangoFcFont *fcfont,
hb_font_get_extents_for_direction
(
hb_font
,
HB_DIRECTION_LTR
,
&
extents
);
if
(
FcPatternGetMatrix
(
fcfont
->
font_pattern
,
FC_MATRIX
,
0
,
&
fc_matrix
)
==
FcResultMatch
)
FC_MATRIX
,
0
,
&
fc_matrix
)
==
FcResultMatch
)
{
have_transform
=
(
fc_matrix
->
xx
!=
1
||
fc_matrix
->
xy
!=
0
||
fc_matrix
->
yx
!=
0
||
fc_matrix
->
yy
!=
1
);
fc_matrix
->
yx
!=
0
||
fc_matrix
->
yy
!=
1
);
}
if
(
have_transform
)
...
...
@@ -366,10 +367,6 @@ get_face_metrics (PangoFcFont *fcfont,
metrics
->
strikethrough_thickness
=
PANGO_SCALE
;
metrics
->
strikethrough_position
=
metrics
->
ascent
/
2
;
/* FIXME: use the right hb version */
#if HB_VERSION_ATLEAST(2,5,4)
hb_position_t
position
;
if
(
hb_ot_metrics_get_position
(
hb_font
,
HB_OT_METRICS_TAG_UNDERLINE_SIZE
,
&
position
))
metrics
->
underline_thickness
=
position
;
...
...
@@ -381,7 +378,6 @@ get_face_metrics (PangoFcFont *fcfont,
if
(
hb_ot_metrics_get_position
(
hb_font
,
HB_OT_METRICS_TAG_STRIKEOUT_OFFSET
,
&
position
))
metrics
->
strikethrough_position
=
position
;
#endif
}
PangoFontMetrics
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment