Skip to content
Permalink
Browse files
REGRESSION(251416@main): Broke GTK...
https://bugs.webkit.org/show_bug.cgi?id=241460

Patch by Philippe Normand <philn@igalia.com> on 2022-06-09
Unreviewed, fix GTK build.

* Source/WebCore/platform/graphics/gtk/SystemFontDatabaseGTK.cpp:
(WebCore::SystemFontDatabase::platformSystemFontShorthandInfo):

Canonical link: https://commits.webkit.org/251423@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
philn authored and webkit-commit-queue committed Jun 9, 2022
1 parent 0e9b491 commit 8b01171ce0a1e2e64e900bff27df356e18082e61
Showing 1 changed file with 2 additions and 2 deletions.
@@ -33,7 +33,7 @@ SystemFontDatabase& SystemFontDatabase::singleton()
return database.get();
}

auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand fontShorthand) -> SystemFontShorthandInfo
auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand) -> SystemFontShorthandInfo
{
GtkSettings* settings = gtk_settings_get_default();
if (!settings)
@@ -54,7 +54,7 @@ auto SystemFontDatabase::platformSystemFontShorthandInfo(FontShorthand fontShort
if (!pango_font_description_get_size_is_absolute(pangoDescription))
size = size * (screenDPI() / 72.0);

SystemFontShorthandInfo result { AtomString::fromLatin1(pango_font_description_get_family(pangoDescription)), size, normalWeightValue() };
SystemFontShorthandInfo result { AtomString::fromLatin1(pango_font_description_get_family(pangoDescription)), static_cast<float>(size), normalWeightValue() };
pango_font_description_free(pangoDescription);
return result;
}

0 comments on commit 8b01171

Please sign in to comment.