1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:37:34 +00:00

LibGfx: Move POINTS_PER_INCH, DEFAULT_DPI to VectorFont.h

...so we can use it in OpenType/Font.cpp.

No behavior change.
This commit is contained in:
Nico Weber 2024-02-15 19:46:53 -05:00 committed by Tim Flynn
parent c24652bd2e
commit 073e2bffcb
2 changed files with 3 additions and 3 deletions

View file

@ -12,9 +12,6 @@
#include <LibGfx/Font/Font.h> #include <LibGfx/Font/Font.h>
#include <LibGfx/Font/VectorFont.h> #include <LibGfx/Font/VectorFont.h>
#define POINTS_PER_INCH 72.0f
#define DEFAULT_DPI 96
namespace Gfx { namespace Gfx {
struct GlyphIndexWithSubpixelOffset { struct GlyphIndexWithSubpixelOffset {

View file

@ -12,6 +12,9 @@
#include <LibGfx/Forward.h> #include <LibGfx/Forward.h>
#include <LibGfx/Path.h> #include <LibGfx/Path.h>
#define POINTS_PER_INCH 72.0f
#define DEFAULT_DPI 96
namespace Gfx { namespace Gfx {
class ScaledFont; class ScaledFont;