mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibPDF: Remove unused PDFFont::type()
This got added in #15270, but its one use then got removed again in #16150. No behavior change.
This commit is contained in:
parent
26fd29baf8
commit
843e9daa8c
4 changed files with 0 additions and 10 deletions
|
@ -16,12 +16,6 @@ namespace PDF {
|
||||||
|
|
||||||
class PDFFont : public RefCounted<PDFFont> {
|
class PDFFont : public RefCounted<PDFFont> {
|
||||||
public:
|
public:
|
||||||
enum class Type {
|
|
||||||
Type0,
|
|
||||||
Type1,
|
|
||||||
TrueType
|
|
||||||
};
|
|
||||||
|
|
||||||
static PDFErrorOr<NonnullRefPtr<PDFFont>> create(Document*, NonnullRefPtr<DictObject> const&, float font_size);
|
static PDFErrorOr<NonnullRefPtr<PDFFont>> create(Document*, NonnullRefPtr<DictObject> const&, float font_size);
|
||||||
|
|
||||||
virtual ~PDFFont() = default;
|
virtual ~PDFFont() = default;
|
||||||
|
@ -29,7 +23,6 @@ public:
|
||||||
virtual void set_font_size(float font_size) = 0;
|
virtual void set_font_size(float font_size) = 0;
|
||||||
virtual PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint, DeprecatedString const&, Color const&, float font_size, float character_spacing, float word_spacing, float horizontal_scaling) = 0;
|
virtual PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint, DeprecatedString const&, Color const&, float font_size, float character_spacing, float word_spacing, float horizontal_scaling) = 0;
|
||||||
|
|
||||||
virtual Type type() const = 0;
|
|
||||||
DeprecatedFlyString base_font_name() const { return m_base_font_name; }
|
DeprecatedFlyString base_font_name() const { return m_base_font_name; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -17,7 +17,6 @@ public:
|
||||||
Optional<float> get_glyph_width(u8 char_code) const override;
|
Optional<float> get_glyph_width(u8 char_code) const override;
|
||||||
void set_font_size(float font_size) override;
|
void set_font_size(float font_size) override;
|
||||||
void draw_glyph(Gfx::Painter&, Gfx::FloatPoint, float, u8, Color) override;
|
void draw_glyph(Gfx::Painter&, Gfx::FloatPoint, float, u8, Color) override;
|
||||||
Type type() const override { return PDFFont::Type::TrueType; }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float font_size) override;
|
PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float font_size) override;
|
||||||
|
|
|
@ -27,7 +27,6 @@ public:
|
||||||
|
|
||||||
void set_font_size(float font_size) override;
|
void set_font_size(float font_size) override;
|
||||||
PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint pos, DeprecatedString const&, Color const&, float, float, float, float) override;
|
PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint pos, DeprecatedString const&, Color const&, float, float, float, float) override;
|
||||||
Type type() const override { return PDFFont::Type::Type0; }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float) override;
|
PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float) override;
|
||||||
|
|
|
@ -25,7 +25,6 @@ public:
|
||||||
Optional<float> get_glyph_width(u8 char_code) const override;
|
Optional<float> get_glyph_width(u8 char_code) const override;
|
||||||
void set_font_size(float font_size) override;
|
void set_font_size(float font_size) override;
|
||||||
void draw_glyph(Gfx::Painter& painter, Gfx::FloatPoint point, float width, u8 char_code, Color color) override;
|
void draw_glyph(Gfx::Painter& painter, Gfx::FloatPoint point, float width, u8 char_code, Color color) override;
|
||||||
Type type() const override { return PDFFont::Type::Type1; }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float font_size) override;
|
PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float font_size) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue