Skip to content

Commit 1f765b8

Browse files
committed
Revert "common/pango: Disable glyph position rounding"
This reverts commit 8c5b23e.
1 parent a81953c commit 1f765b8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

common/pango.c

-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ size_t escape_markup_text(const char *src, char *dest) {
5353
PangoLayout *get_pango_layout(cairo_t *cairo, const PangoFontDescription *desc,
5454
const char *text, double scale, bool markup) {
5555
PangoLayout *layout = pango_cairo_create_layout(cairo);
56-
pango_context_set_round_glyph_positions(pango_layout_get_context(layout), false);
57-
5856
PangoAttrList *attrs;
5957
if (markup) {
6058
char *buf;
@@ -106,7 +104,6 @@ void get_text_size(cairo_t *cairo, const PangoFontDescription *desc, int *width,
106104
void get_text_metrics(const PangoFontDescription *description, int *height, int *baseline) {
107105
cairo_t *cairo = cairo_create(NULL);
108106
PangoContext *pango = pango_cairo_create_context(cairo);
109-
pango_context_set_round_glyph_positions(pango, false);
110107
// When passing NULL as a language, pango uses the current locale.
111108
PangoFontMetrics *metrics = pango_context_get_metrics(pango, description, NULL);
112109

0 commit comments

Comments
 (0)