1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:27:36 +00:00

LibPDF: Move font files into their own directory

This commit is contained in:
Matthew Olsson 2022-03-24 22:14:50 -07:00 committed by Andreas Kling
parent d2771eafc5
commit 5f9d35909d
8 changed files with 55 additions and 26 deletions

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2022, Matthew Olsson <mattco@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibPDF/Document.h>
namespace PDF {
class PDFFont : public RefCounted<PDFFont> {
public:
static PDFErrorOr<NonnullRefPtr<PDFFont>> create(Document*, NonnullRefPtr<DictObject>);
virtual ~PDFFont() = default;
virtual u32 char_code_to_code_point(u16 char_code) const = 0;
virtual float get_char_width(u16 char_code) const = 0;
};
}