Skip to content

Commit

Permalink
Revert "common/pango: Disable glyph position rounding"
Browse files Browse the repository at this point in the history
This reverts commit 8c5b23e.
  • Loading branch information
Nefsen402 committed Nov 3, 2024
1 parent 456e188 commit 878ed3d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/pango.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ size_t escape_markup_text(const char *src, char *dest) {
PangoLayout *get_pango_layout(cairo_t *cairo, const PangoFontDescription *desc,
const char *text, double scale, bool markup) {
PangoLayout *layout = pango_cairo_create_layout(cairo);
pango_context_set_round_glyph_positions(pango_layout_get_context(layout), false);

PangoAttrList *attrs;
if (markup) {
char *buf;
Expand Down Expand Up @@ -106,7 +104,6 @@ void get_text_size(cairo_t *cairo, const PangoFontDescription *desc, int *width,
void get_text_metrics(const PangoFontDescription *description, int *height, int *baseline) {
cairo_t *cairo = cairo_create(NULL);
PangoContext *pango = pango_cairo_create_context(cairo);
pango_context_set_round_glyph_positions(pango, false);
// When passing NULL as a language, pango uses the current locale.
PangoFontMetrics *metrics = pango_context_get_metrics(pango, description, NULL);

Expand Down

0 comments on commit 878ed3d

Please sign in to comment.