LibreOffice Module vcl (master) 1
fontcapabilities.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
10#ifndef INCLUDED_VCL_FONTCAPABILITIES_HXX
11#define INCLUDED_VCL_FONTCAPABILITIES_HXX
12
13#include <optional>
14#include <bitset>
15
16//See OS/2 table, i.e. http://www.microsoft.com/typography/otspec/os2.htm#ur
17namespace vcl
18{
19 namespace UnicodeCoverage
20 {
22 {
31 COPTIC = 8,
34 HEBREW = 11,
35 VAI = 12,
36 ARABIC = 13,
37 NKO = 14,
39 BENGALI = 16,
42 ODIA = 19,
43 TAMIL = 20,
44 TELUGU = 21,
45 KANNADA = 22,
47 THAI = 24,
48 LAO = 25,
60 ARROWS = 37,
93 TIBETAN = 70,
94 SYRIAC = 71,
95 THAANA = 72,
96 SINHALA = 73,
97 MYANMAR = 74,
101 OGHAM = 78,
102 RUNIC = 79,
103 KHMER = 80,
109 GOTHIC = 86,
115 TAGS = 92,
116 LIMBU = 93,
117 TAI_LE = 94,
126 UGARITIC = 103,
128 SHAVIAN = 105,
129 OSMANYA = 106,
136 LEPCHA = 113,
137 OL_CHIKI = 114,
139 KAYAH_LI = 116,
140 REJANG = 117,
141 CHAM = 118,
144 CARIAN = 121,
151 MAX_UC_ENUM = 128
152 };
153 };
154
155 namespace CodePageCoverage
156 {
158 {
168 CP874 = 16,
169 CP932 = 17,
170 CP936 = 18,
171 CP949 = 19,
172 CP950 = 20,
173 CP1361 = 21,
174 CP869 = 48,
175 CP866 = 49,
176 CP865 = 50,
177 CP864 = 51,
178 CP863 = 52,
179 CP862 = 53,
180 CP861 = 54,
181 CP860 = 55,
182 CP857 = 56,
183 CP855 = 57,
184 CP852 = 58,
185 CP775 = 59,
186 CP737 = 60,
187 CP780 = 61,
188 CP850 = 62,
189 CP437 = 63,
190 MAX_CP_ENUM = 64
191 };
192 };
193
195 {
196 std::optional<std::bitset<UnicodeCoverage::MAX_UC_ENUM>> oUnicodeRange;
197 std::optional<std::bitset<CodePageCoverage::MAX_CP_ENUM>> oCodePageRange;
198 };
199}
200
201#endif
202
203/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::optional< std::bitset< CodePageCoverage::MAX_CP_ENUM > > oCodePageRange
std::optional< std::bitset< UnicodeCoverage::MAX_UC_ENUM > > oUnicodeRange