LibreOffice Module vcl (master) 1
pdfbuildin_fonts.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sal/config.h>
23
26
27namespace vcl::pdf
28{
30{
31 const char* m_pName;
32 const char* m_pStyleName;
33 const char* m_pPSName;
34 int const m_nAscent;
35 int const m_nDescent;
37 rtl_TextEncoding const m_eCharSet;
42 int const m_aWidths[256];
44
45 OString getNameObject() const;
46 const FontCharMapRef& GetFontCharMap() const;
48};
49
51{
52public:
54
55 bool GetGlyphOutline(sal_GlyphId nId, basegfx::B2DPolyPolygon& rPoly, bool) const override;
56};
57
59{
60 static const BuildinFont m_aBuildinFonts[14];
62
64 CreateFontInstance(const vcl::font::FontSelectPattern& rFSD) const override;
65
66public:
67 explicit BuildinFontFace(int nId);
68
69 const BuildinFont& GetBuildinFont() const { return mrBuildin; }
70 sal_IntPtr GetFontId() const override { return reinterpret_cast<sal_IntPtr>(&mrBuildin); }
72 bool GetFontCapabilities(vcl::FontCapabilities&) const override { return false; }
73
74 static const BuildinFont& Get(int nId) { return m_aBuildinFonts[nId]; }
75};
76
77} // namespace vcl::pdf
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
abstract base class for physical font faces
rtl::Reference< LogicalFontInstance > CreateFontInstance(const vcl::font::FontSelectPattern &rFSD) const override
const BuildinFont & GetBuildinFont() const
FontCharMapRef GetFontCharMap() const override
bool GetFontCapabilities(vcl::FontCapabilities &) const override
sal_IntPtr GetFontId() const override
static const BuildinFont m_aBuildinFonts[14]
static const BuildinFont & Get(int nId)
const BuildinFont & mrBuildin
bool GetGlyphOutline(sal_GlyphId nId, basegfx::B2DPolyPolygon &rPoly, bool) const override
BuildinFontInstance(const vcl::font::PhysicalFontFace &, const vcl::font::FontSelectPattern &)
FontPitch
FontItalic
FontWidth
FontFamily
uint32_t sal_GlyphId
Definition: glyphid.hxx:24
FontWeight
sal_Int16 nId
FontCharMapRef m_xFontCharMap
FontFamily const m_eFamily
const FontCharMapRef & GetFontCharMap() const
FontWidth const m_eWidthType
FontItalic const m_eItalic
rtl_TextEncoding const m_eCharSet
OString getNameObject() const
FontAttributes GetFontAttributes() const
FontPitch const m_ePitch
FontWeight const m_eWeight