/* * Copyright (c) 2022, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace PDF { class PDFFont : public RefCounted { public: static PDFErrorOr> create(Document*, NonnullRefPtr); virtual ~PDFFont() = default; virtual u32 char_code_to_code_point(u16 char_code) const = 0; virtual float get_char_width(u16 char_code, float font_size) const = 0; }; }