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:
parent
0624472768
commit
9a4a3318a9
2 changed files with 9 additions and 4 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue