1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:27:45 +00:00

LibPDF: Store a PDFFont in the Renderer's text state

This commit is contained in:
Matthew Olsson 2022-03-08 12:10:06 -07:00 committed by Andreas Kling
parent 0624472768
commit 9a4a3318a9
2 changed files with 9 additions and 4 deletions

View file

@ -18,6 +18,7 @@
#include <LibGfx/Size.h>
#include <LibPDF/ColorSpace.h>
#include <LibPDF/Document.h>
#include <LibPDF/Fonts.h>
#include <LibPDF/Object.h>
namespace PDF {
@ -58,6 +59,7 @@ struct TextState {
FlyString font_family { "Liberation Serif" };
String font_variant { "Regular" };
float font_size { 12.0f };
RefPtr<PDFFont> font;
TextRenderingMode rendering_mode { TextRenderingMode::Fill };
float rise { 0.0f };
bool knockout { true };