From 073e2bffcb72921920a2fc3015c458af9022098d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 15 Feb 2024 19:46:53 -0500 Subject: [PATCH] LibGfx: Move POINTS_PER_INCH, DEFAULT_DPI to VectorFont.h ...so we can use it in OpenType/Font.cpp. No behavior change. --- Userland/Libraries/LibGfx/Font/ScaledFont.h | 3 --- Userland/Libraries/LibGfx/Font/VectorFont.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibGfx/Font/ScaledFont.h b/Userland/Libraries/LibGfx/Font/ScaledFont.h index fb3a00f745..e15e83a781 100644 --- a/Userland/Libraries/LibGfx/Font/ScaledFont.h +++ b/Userland/Libraries/LibGfx/Font/ScaledFont.h @@ -12,9 +12,6 @@ #include #include -#define POINTS_PER_INCH 72.0f -#define DEFAULT_DPI 96 - namespace Gfx { struct GlyphIndexWithSubpixelOffset { diff --git a/Userland/Libraries/LibGfx/Font/VectorFont.h b/Userland/Libraries/LibGfx/Font/VectorFont.h index 14b3d337ab..8d295d5af9 100644 --- a/Userland/Libraries/LibGfx/Font/VectorFont.h +++ b/Userland/Libraries/LibGfx/Font/VectorFont.h @@ -12,6 +12,9 @@ #include #include +#define POINTS_PER_INCH 72.0f +#define DEFAULT_DPI 96 + namespace Gfx { class ScaledFont;