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:
parent
d2771eafc5
commit
5f9d35909d
8 changed files with 55 additions and 26 deletions
23
Userland/Libraries/LibPDF/Fonts/PDFFont.h
Normal file
23
Userland/Libraries/LibPDF/Fonts/PDFFont.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue