Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/vcl/source/gdi/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 39 kB image not shown  

Quelle  pdfbuildin_fonts.cxx

  Sprache: C
 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#include <sal/config.h>

#include <rtl/strbuf.hxx>

#include <pdf/pdfbuildin_fonts.hxx>

namespace vcl::pdf
{
OString BuildinFont::getNameObject() const
{
    OStringBuffer aBuf(16);
    aBuf.append('/');
    const char* pRun = m_pPSName;

    unsigned int nCopied = 0;
    while (*pRun)
    {
        if (*pRun >= 'A' && *pRun <= 'Z')
            nCopied = 0;
        if (nCopied++ < 2)
            aBuf.append(*pRun);
        pRun++;
    }
    return aBuf.makeStringAndClear();
}

const FontCharMapRef& BuildinFont::GetFontCharMap() const
{
    assert(false && "pdf::BuildinFont doesn't provide correct char maps!");
    if (m_xFontCharMap.is())
        return m_xFontCharMap;

    m_xFontCharMap = FontCharMap::GetDefaultMap(m_eCharSet != RTL_TEXTENCODING_MS_1252);
    return m_xFontCharMap;
}

FontAttributes BuildinFont::GetFontAttributes() const
{
    FontAttributes aDFA;
    aDFA.SetFamilyName(m_aName);
    aDFA.SetStyleName(m_aStyleName);
    aDFA.SetFamilyType(m_eFamily);
    // dubious, see BuildinFont::GetFontCharMap
    aDFA.SetMicrosoftSymbolEncoded(m_eCharSet != RTL_TEXTENCODING_MS_1252);
    aDFA.SetPitch(m_ePitch);
    aDFA.SetWeight(m_eWeight);
    aDFA.SetItalic(m_eItalic);
    aDFA.SetWidthType(m_eWidthType);
    aDFA.SetQuality(50000);
    return aDFA;
}

const BuildinFont BuildinFontFace::m_aBuildinFonts[14]
    = { { u"Courier"_ustr, // family name
          u"Normal"_ustr, // style
          "Courier"// PSName
          629,
          -157// ascend, descend
          FAMILY_MODERN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_FIXED, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,   0,   0,   0,   0,   0,   0// 0 - 7
              0,   0,   0,   0,   0,   0,   0,   0// 8 - 15
              0,   0,   0,   0,   0,   0,   0,   0// 16 - 23
              0,   0,   0,   0,   0,   0,   0,   0// 24 - 31
              600600600600600600600600// 32 - 39
              600600600600600600600600// 40 - 47
              600600600600600600600600// 48 - 55
              600600600600600600600600// 56 - 63
              600600600600600600600600// 64 - 71
              600600600600600600600600// 72 - 79
              600600600600600600600600// 80 - 87
              600600600600600600600600// 88 - 95
              600600600600600600600600// 96 - 103
              600600600600600600600600// 104 - 111
              600600600600600600600600// 112 - 119
              6006006006006006006000// 120 - 127
              6000,   600600600600600600// 128 - 135
              6006006006006000,   6000// 136 - 143
              0,   600600600600600600600// 144 - 151
              6006006006006000,   600600// 152 - 159
              600600600600600600600600// 160 - 167
              600600600600600600600600// 168 - 175
              600600600600600600600600// 176 - 183
              600600600600600600600600// 184 - 191
              600600600600600600600600// 192 - 199
              600600600600600600600600// 200 - 207
              600600600600600600600600// 208 - 215
              600600600600600600600600// 216 - 223
              600600600600600600600600// 224 - 231
              600600600600600600600600// 232 - 239
              600600600600600600600600// 240 - 247
              600600600600600600600600 // 248 - 255
          },
          FontCharMapRef() },

        { u"Courier"_ustr, // family name
          u"Italic"_ustr, // style
          "Courier-Oblique"// PSName
          629,
          -157// ascend, descend
          FAMILY_MODERN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_FIXED, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NORMAL, // italic type
          {
              0,   0,   0,   0,   0,   0,   0,   0// 0 - 7
              0,   0,   0,   0,   0,   0,   0,   0// 8 - 15
              0,   0,   0,   0,   0,   0,   0,   0// 16 - 23
              0,   0,   0,   0,   0,   0,   0,   0// 24 - 31
              600600600600600600600600// 32 - 39
              600600600600600600600600// 40 - 47
              600600600600600600600600// 48 - 55
              600600600600600600600600// 56 - 63
              600600600600600600600600// 64 - 71
              600600600600600600600600// 72 - 79
              600600600600600600600600// 80 - 87
              600600600600600600600600// 88 - 95
              600600600600600600600600// 96 - 103
              600600600600600600600600// 104 - 111
              600600600600600600600600// 112 - 119
              6006006006006006006000// 120 - 127
              6000,   600600600600600600// 128 - 135
              6006006006006000,   6000// 136 - 143
              0,   600600600600600600600// 144 - 151
              6006006006006000,   600600// 152 - 159
              600600600600600600600600// 160 - 167
              600600600600600600600600// 168 - 175
              600600600600600600600600// 176 - 183
              600600600600600600600600// 184 - 191
              600600600600600600600600// 192 - 199
              600600600600600600600600// 200 - 207
              600600600600600600600600// 208 - 215
              600600600600600600600600// 216 - 223
              600600600600600600600600// 224 - 231
              600600600600600600600600// 232 - 239
              600600600600600600600600// 240 - 247
              600600600600600600600600 // 248 - 255
          },
          FontCharMapRef() },

        { u"Courier"_ustr, // family name
          u"Bold"_ustr, // style
          "Courier-Bold"// PSName
          629,
          -157// ascend, descend
          FAMILY_MODERN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_FIXED, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_BOLD, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,   0,   0,   0,   0,   0,   0// 0 - 7
              0,   0,   0,   0,   0,   0,   0,   0// 8 - 15
              0,   0,   0,   0,   0,   0,   0,   0// 16 - 23
              0,   0,   0,   0,   0,   0,   0,   0// 24 - 31
              600600600600600600600600// 32 - 39
              600600600600600600600600// 40 - 47
              600600600600600600600600// 48 - 55
              600600600600600600600600// 56 - 63
              600600600600600600600600// 64 - 71
              600600600600600600600600// 72 - 79
              600600600600600600600600// 80 - 87
              600600600600600600600600// 88 - 95
              600600600600600600600600// 96 - 103
              600600600600600600600600// 104 - 111
              600600600600600600600600// 112 - 119
              6006006006006006006000// 120 - 127
              6000,   600600600600600600// 128 - 135
              6006006006006000,   6000// 136 - 143
              0,   600600600600600600600// 144 - 151
              6006006006006000,   600600// 152 - 159
              600600600600600600600600// 160 - 167
              600600600600600600600600// 168 - 175
              600600600600600600600600// 176 - 183
              600600600600600600600600// 184 - 191
              600600600600600600600600// 192 - 199
              600600600600600600600600// 200 - 207
              600600600600600600600600// 208 - 215
              600600600600600600600600// 216 - 223
              600600600600600600600600// 224 - 231
              600600600600600600600600// 232 - 239
              600600600600600600600600// 240 - 247
              600600600600600600600600 // 248 - 255
          },
          FontCharMapRef() },

        { u"Courier"_ustr, // family name
          u"Bold Italic"_ustr, // style
          "Courier-BoldOblique"// PSName
          629,
          -157// ascend, descend
          FAMILY_MODERN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_FIXED, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_BOLD, // weight type
          ITALIC_NORMAL, // italic type
          {
              0,   0,   0,   0,   0,   0,   0,   0// 0 - 7
              0,   0,   0,   0,   0,   0,   0,   0// 8 - 15
              0,   0,   0,   0,   0,   0,   0,   0// 16 - 23
              0,   0,   0,   0,   0,   0,   0,   0// 24 - 31
              600600600600600600600600// 32 - 39
              600600600600600600600600// 40 - 47
              600600600600600600600600// 48 - 55
              600600600600600600600600// 56 - 63
              600600600600600600600600// 64 - 71
              600600600600600600600600// 72 - 79
              600600600600600600600600// 80 - 87
              600600600600600600600600// 88 - 95
              600600600600600600600600// 96 - 103
              600600600600600600600600// 104 - 111
              600600600600600600600600// 112 - 119
              6006006006006006006000// 120 - 127
              6000,   600600600600600600// 128 - 135
              6006006006006000,   6000// 136 - 143
              0,   600600600600600600600// 144 - 151
              6006006006006000,   600600// 152 - 159
              600600600600600600600600// 160 - 167
              600600600600600600600600// 168 - 175
              600600600600600600600600// 176 - 183
              600600600600600600600600// 184 - 191
              600600600600600600600600// 192 - 199
              600600600600600600600600// 200 - 207
              600600600600600600600600// 208 - 215
              600600600600600600600600// 216 - 223
              600600600600600600600600// 224 - 231
              600600600600600600600600// 232 - 239
              600600600600600600600600// 240 - 247
              600600600600600600600600 // 248 - 255
          },
          FontCharMapRef() },

        { u"Helvetica"_ustr, // family name
          u"Normal"_ustr, // style
          "Helvetica"// PSName
          718,
          -207// ascend, descend
          FAMILY_SWISS, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NONE, // italic type
          {
              0,    0,    0,   0,   0,    0,    0,    0// 0 - 7
              0,    0,    0,   0,   0,    0,    0,    0// 8 - 15
              0,    0,    0,   0,   0,    0,    0,    0// 16 - 23
              0,    0,    0,   0,   0,    0,    0,    0// 24 - 31
              278,  278,  355556556,  889,  667,  191// 32 - 39
              333,  333,  389584278,  333,  278,  278// 40 - 47
              556,  556,  556556556,  556,  556,  556// 48 - 55
              556,  556,  278278584,  584,  584,  556// 56 - 63
              1015667,  667722722,  667,  611,  778// 64 - 71
              722,  278,  500667556,  833,  722,  778// 72 - 79
              667,  778,  722667611,  722,  667,  944// 80 - 87
              667,  667,  611278278,  278,  469,  556// 88 - 95
              333,  556,  556500556,  556,  278,  556// 96 - 103
              556,  222,  222500222,  833,  556,  556// 104 - 111
              556,  556,  333500278,  556,  500,  722// 112 - 119
              500,  500,  500334260,  334,  584,  0// 120 - 127
              556,  0,    222556333,  1000556,  556// 128 - 135
              333,  100066733310000,    500,  0// 136 - 143
              0,    222,  222333333,  350,  556,  1000// 144 - 151
              333,  1000500333944,  0,    500,  667// 152 - 159
              278,  333,  556556556,  556,  260,  556// 160 - 167
              333,  737,  370556584,  333,  737,  333// 168 - 175
              400,  584,  333333333,  556,  537,  278// 176 - 183
              333,  333,  365556834,  834,  834,  611// 184 - 191
              667,  667,  667667667,  667,  1000722// 192 - 199
              667,  667,  667667278,  278,  278,  278// 200 - 207
              722,  722,  778778778,  778,  778,  584// 208 - 215
              778,  722,  722722722,  667,  667,  611// 216 - 223
              556,  556,  556556556,  556,  889,  500// 224 - 231
              556,  556,  556556278,  278,  278,  278// 232 - 239
              556,  556,  556556556,  556,  556,  584// 240 - 247
              611,  556,  556556556,  500,  556,  500 // 248 - 255
          },
          FontCharMapRef() },

        { u"Helvetica"_ustr, // family name
          u"Italic"_ustr, // style
          "Helvetica-Oblique"// PSName
          718,
          -207// ascend, descend
          FAMILY_SWISS, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NORMAL, // italic type
          {
              0,    0,    0,   0,   0,    0,    0,    0// 0 - 7
              0,    0,    0,   0,   0,    0,    0,    0// 8 - 15
              0,    0,    0,   0,   0,    0,    0,    0// 16 - 23
              0,    0,    0,   0,   0,    0,    0,    0// 24 - 31
              278,  278,  355556556,  889,  667,  191// 32 - 39
              333,  333,  389584278,  333,  278,  278// 40 - 47
              556,  556,  556556556,  556,  556,  556// 48 - 55
              556,  556,  278278584,  584,  584,  556// 56 - 63
              1015667,  667722722,  667,  611,  778// 64 - 71
              722,  278,  500667556,  833,  722,  778// 72 - 79
              667,  778,  722667611,  722,  667,  944// 80 - 87
              667,  667,  611278278,  278,  469,  556// 88 - 95
              333,  556,  556500556,  556,  278,  556// 96 - 103
              556,  222,  222500222,  833,  556,  556// 104 - 111
              556,  556,  333500278,  556,  500,  722// 112 - 119
              500,  500,  500334260,  334,  584,  0// 120 - 127
              556,  0,    222556333,  1000556,  556// 128 - 135
              333,  100066733310000,    500,  0// 136 - 143
              0,    222,  222333333,  350,  556,  1000// 144 - 151
              333,  1000500333944,  0,    500,  667// 152 - 159
              278,  333,  556556556,  556,  260,  556// 160 - 167
              333,  737,  370556584,  333,  737,  333// 168 - 175
              400,  584,  333333333,  556,  537,  278// 176 - 183
              333,  333,  365556834,  834,  834,  611// 184 - 191
              667,  667,  667667667,  667,  1000722// 192 - 199
              667,  667,  667667278,  278,  278,  278// 200 - 207
              722,  722,  778778778,  778,  778,  584// 208 - 215
              778,  722,  722722722,  667,  667,  611// 216 - 223
              556,  556,  556556556,  556,  889,  500// 224 - 231
              556,  556,  556556278,  278,  278,  278// 232 - 239
              556,  556,  556556556,  556,  556,  584// 240 - 247
              611,  556,  556556556,  500,  556,  500 // 248 - 255
          },
          FontCharMapRef() },

        { u"Helvetica"_ustr, // family name
          u"Bold"_ustr, // style
          "Helvetica-Bold"// PSName
          718,
          -207// ascend, descend
          FAMILY_SWISS, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_BOLD, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,    0,   0,   0,    0,    0,    0// 0 - 7
              0,   0,    0,   0,   0,    0,    0,    0// 8 - 15
              0,   0,    0,   0,   0,    0,    0,    0// 16 - 23
              0,   0,    0,   0,   0,    0,    0,    0// 24 - 31
              278333,  474556556,  889,  722,  238// 32 - 39
              333333,  389584278,  333,  278,  278// 40 - 47
              556556,  556556556,  556,  556,  556// 48 - 55
              556556,  333333584,  584,  584,  611// 56 - 63
              975722,  722722722,  667,  611,  778// 64 - 71
              722278,  556722611,  833,  722,  778// 72 - 79
              667778,  722667611,  722,  667,  944// 80 - 87
              667667,  611333278,  333,  584,  556// 88 - 95
              333556,  611556611,  556,  333,  611// 96 - 103
              611278,  278556278,  889,  611,  611// 104 - 111
              611611,  389556333,  611,  556,  778// 112 - 119
              556556,  500389280,  389,  584,  0// 120 - 127
              5560,    278556500,  1000556,  556// 128 - 135
              333100066733310000,    500,  0// 136 - 143
              0,   278,  278500500,  350,  556,  1000// 144 - 151
              3331000556333944,  0,    500,  667// 152 - 159
              278333,  556556556,  556,  280,  556// 160 - 167
              333737,  370556584,  333,  737,  333// 168 - 175
              400584,  333333333,  611,  556,  278// 176 - 183
              333333,  365556834,  834,  834,  611// 184 - 191
              722722,  722722722,  722,  1000722// 192 - 199
              667667,  667667278,  278,  278,  278// 200 - 207
              722722,  778778778,  778,  778,  584// 208 - 215
              778722,  722722722,  667,  667,  611// 216 - 223
              556556,  556556556,  556,  889,  556// 224 - 231
              556556,  556556278,  278,  278,  278// 232 - 239
              611611,  611611611,  611,  611,  584// 240 - 247
              611611,  611611611,  556,  611,  556 // 248 - 255
          },
          FontCharMapRef() },

        { u"Helvetica"_ustr, // family name
          u"Bold Italic"_ustr, // style
          "Helvetica-BoldOblique"// PSName
          718,
          -207// ascend, descend
          FAMILY_SWISS, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_BOLD, // weight type
          ITALIC_NORMAL, // italic type
          {
              0,   0,    0,   0,   0,    0,    0,    0// 0 - 7
              0,   0,    0,   0,   0,    0,    0,    0// 8 - 15
              0,   0,    0,   0,   0,    0,    0,    0// 16 - 23
              0,   0,    0,   0,   0,    0,    0,    0// 24 - 31
              278333,  474556556,  889,  722,  238// 32 - 39
              333333,  389584278,  333,  278,  278// 40 - 47
              556556,  556556556,  556,  556,  556// 48 - 55
              556556,  333333584,  584,  584,  611// 56 - 63
              975722,  722722722,  667,  611,  778// 64 - 71
              722278,  556722611,  833,  722,  778// 72 - 79
              667778,  722667611,  722,  667,  944// 80 - 87
              667667,  611333278,  333,  584,  556// 88 - 95
              333556,  611556611,  556,  333,  611// 96 - 103
              611278,  278556278,  889,  611,  611// 104 - 111
              611611,  389556333,  611,  556,  778// 112 - 119
              556556,  500389280,  389,  584,  0// 120 - 127
              5560,    278556500,  1000556,  556// 128 - 135
              333100066733310000,    500,  0// 136 - 143
              0,   278,  278500500,  350,  556,  1000// 144 - 151
              3331000556333944,  0,    500,  667// 152 - 159
              278333,  556556556,  556,  280,  556// 160 - 167
              333737,  370556584,  333,  737,  333// 168 - 175
              400584,  333333333,  611,  556,  278// 176 - 183
              333333,  365556834,  834,  834,  611// 184 - 191
              722722,  722722722,  722,  1000722// 192 - 199
              667667,  667667278,  278,  278,  278// 200 - 207
              722722,  778778778,  778,  778,  584// 208 - 215
              778722,  722722722,  667,  667,  611// 216 - 223
              556556,  556556556,  556,  889,  556// 224 - 231
              556556,  556556278,  278,  278,  278// 232 - 239
              611611,  611611611,  611,  611,  584// 240 - 247
              611611,  611611611,  556,  611,  556 // 248 - 255
          },
          FontCharMapRef() },

        { u"Times"_ustr, // family name
          u"Normal"_ustr, // style
          "Times-Roman"// PSName
          683,
          -217// ascend, descend
          FAMILY_ROMAN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,    0,   0,   0,   0,    0,   0// 0 - 7
              0,   0,    0,   0,   0,   0,    0,   0// 8 - 15
              0,   0,    0,   0,   0,   0,    0,   0// 16 - 23
              0,   0,    0,   0,   0,   0,    0,   0// 24 - 31
              250333,  408500500833,  778180// 32 - 39
              333333,  500564250333,  250278// 40 - 47
              500500,  500500500500,  500500// 48 - 55
              500500,  278278564564,  564444// 56 - 63
              921722,  667667722611,  556722// 64 - 71
              722333,  389722611889,  722722// 72 - 79
              556722,  667556611722,  722944// 80 - 87
              722722,  611333278333,  469500// 88 - 95
              333444,  500444500444,  333500// 96 - 103
              500278,  278500278778,  500500// 104 - 111
              500500,  333389278500,  500722// 112 - 119
              500500,  444480200480,  5410// 120 - 127
              5000,    3335004441000500500// 128 - 135
              33310005563338890,    4440// 136 - 143
              0,   333,  333444444350,  5001000// 144 - 151
              333980,  3893337220,    444722// 152 - 159
              250333,  500500500500,  200500// 160 - 167
              333760,  276500564333,  760333// 168 - 175
              400564,  300300333500,  453250// 176 - 183
              333300,  310500750750,  750444// 184 - 191
              722722,  722722722722,  889667// 192 - 199
              611611,  611611333333,  333333// 200 - 207
              722722,  722722722722,  722564// 208 - 215
              722722,  722722722722,  556500// 216 - 223
              444444,  444444444444,  667444// 224 - 231
              444444,  444444278278,  278278// 232 - 239
              500500,  500500500500,  500564// 240 - 247
              500500,  500500500500,  500500 // 248 - 255
          },
          FontCharMapRef() },

        { u"Times"_ustr, // family name
          u"Italic"_ustr, // style
          "Times-Italic"// PSName
          683,
          -217// ascend, descend
          FAMILY_ROMAN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NORMAL, // italic type
          {
              0,   0,    0,   0,   0,   0,   0,   0// 0 - 7
              0,   0,    0,   0,   0,   0,   0,   0// 8 - 15
              0,   0,    0,   0,   0,   0,   0,   0// 16 - 23
              0,   0,    0,   0,   0,   0,   0,   0// 24 - 31
              250333,  420500500833778214// 32 - 39
              333333,  500675250333250278// 40 - 47
              500500,  500500500500500500// 48 - 55
              500500,  333333675675675500// 56 - 63
              920611,  611667722611611722// 64 - 71
              722333,  444667556833667722// 72 - 79
              611722,  611500556722611833// 80 - 87
              611556,  556389278389422500// 88 - 95
              333500,  500444500444278500// 96 - 103
              500278,  278444278722500500// 104 - 111
              500500,  389389278500444667// 112 - 119
              444444,  3894002754005410// 120 - 127
              5000,    333500556889500500// 128 - 135
              33310005003339440,   3890// 136 - 143
              0,   333,  333556556350500889// 144 - 151
              333980,  3893336670,   389556// 152 - 159
              250389,  500500500500275500// 160 - 167
              333760,  276500675333760333// 168 - 175
              400675,  300300333500523250// 176 - 183
              333300,  310500750750750500// 184 - 191
              611611,  611611611611889667// 192 - 199
              611611,  611611333333333333// 200 - 207
              722667,  722722722722722675// 208 - 215
              722722,  722722722556611500// 216 - 223
              500500,  500500500500667444// 224 - 231
              444444,  444444278278278278// 232 - 239
              500500,  500500500500500675// 240 - 247
              500500,  500500500444500444 // 248 - 255
          },
          FontCharMapRef() },

        { u"Times"_ustr, // family name
          u"Bold"_ustr, // style
          "Times-Bold"// PSName
          683,
          -217// ascend, descend
          FAMILY_ROMAN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_BOLD, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,    0,   0,   0,    0,    0,    0// 0 - 7
              0,   0,    0,   0,   0,    0,    0,    0// 8 - 15
              0,   0,    0,   0,   0,    0,    0,    0// 16 - 23
              0,   0,    0,   0,   0,    0,    0,    0// 24 - 31
              250333,  555500500,  1000833,  278// 32 - 39
              333333,  500570250,  333,  250,  278// 40 - 47
              500500,  500500500,  500,  500,  500// 48 - 55
              500500,  333333570,  570,  570,  500// 56 - 63
              930722,  667722722,  667,  611,  778// 64 - 71
              778389,  500778667,  944,  722,  778// 72 - 79
              611778,  722556667,  722,  722,  1000// 80 - 87
              722722,  667333278,  333,  581,  500// 88 - 95
              333500,  556444556,  444,  333,  500// 96 - 103
              556278,  333556278,  833,  556,  500// 104 - 111
              556556,  444389333,  556,  500,  722// 112 - 119
              500500,  444394220,  394,  520,  0// 120 - 127
              5000,    333500500,  1000500,  500// 128 - 135
              333100055633310000,    444,  0// 136 - 143
              0,   333,  333500500,  350,  500,  1000// 144 - 151
              3331000389333722,  0,    444,  722// 152 - 159
              250333,  500500500,  500,  220,  500// 160 - 167
              333747,  300500570,  333,  747,  333// 168 - 175
              400570,  300300333,  556,  540,  250// 176 - 183
              333300,  330500750,  750,  750,  500// 184 - 191
              722722,  722722722,  722,  1000722// 192 - 199
              667667,  667667389,  389,  389,  389// 200 - 207
              722722,  778778778,  778,  778,  570// 208 - 215
              778722,  722722722,  722,  611,  556// 216 - 223
              500500,  500500500,  500,  722,  444// 224 - 231
              444444,  444444278,  278,  278,  278// 232 - 239
              500556,  500500500,  500,  500,  570// 240 - 247
              500556,  556556556,  500,  556,  500 // 248 - 255
          },
          FontCharMapRef() },

        { u"Times"_ustr, // family name
          u"Bold Italic"_ustr, // style
          "Times-BoldItalic"// PSName
          683,
          -217// ascend, descend
          FAMILY_ROMAN, // family style
          RTL_TEXTENCODING_MS_1252, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_BOLD, // weight type
          ITALIC_NORMAL, // italic type
          {
              0,   0,    0,   0,   0,   0,    0,   0// 0 - 7
              0,   0,    0,   0,   0,   0,    0,   0// 8 - 15
              0,   0,    0,   0,   0,   0,    0,   0// 16 - 23
              0,   0,    0,   0,   0,   0,    0,   0// 24 - 31
              250389,  555500500833,  778278// 32 - 39
              333333,  500570250333,  250278// 40 - 47
              500500,  500500500500,  500500// 48 - 55
              500500,  333333570570,  570500// 56 - 63
              832667,  667667722667,  667722// 64 - 71
              778389,  500667611889,  722722// 72 - 79
              611722,  667556611722,  667889// 80 - 87
              667611,  611333278333,  570500// 88 - 95
              333500,  500444500444,  333500// 96 - 103
              556278,  278500278778,  556500// 104 - 111
              500500,  389389278556,  444667// 112 - 119
              500444,  389348220348,  5700// 120 - 127
              5000,    3335005001000500500// 128 - 135
              33310005563339440,    3890// 136 - 143
              0,   333,  333500500350,  5001000// 144 - 151
              33310003893337220,    389611// 152 - 159
              250389,  500500500500,  220500// 160 - 167
              333747,  266500606333,  747333// 168 - 175
              400570,  300300333576,  500250// 176 - 183
              333300,  300500750750,  750500// 184 - 191
              667667,  667667667667,  944667// 192 - 199
              667667,  667667389389,  389389// 200 - 207
              722722,  722722722722,  722570// 208 - 215
              722722,  722722722611,  611500// 216 - 223
              500500,  500500500500,  722444// 224 - 231
              444444,  444444278278,  278278// 232 - 239
              500556,  500500500500,  500570// 240 - 247
              500556,  556556556444,  500444 // 248 - 255
          },
          FontCharMapRef() },

        // The font name "Symbol" is too generic and causes plenty of trouble.
        // To ensure WYSIWIG the PDF-Base14 variant gets a not-confusable name
        { u"PDF_Base14_Symbol"_ustr, // family name
          u"Normal"_ustr, // style
          "Symbol"// PSName
          1010,
          -293// ascend, descend
          FAMILY_DONTKNOW, // family style
          RTL_TEXTENCODING_ADOBE_SYMBOL, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,   0,   0,    0,    0,   0,    0// 0 - 7
              0,   0,   0,   0,    0,    0,   0,    0// 8 - 15
              0,   0,   0,   0,    0,    0,   0,    0// 16 - 23
              0,   0,   0,   0,    0,    0,   0,    0// 24 - 31
              250333713500,  549,  833778,  439// 32 - 39
              333333500549,  250,  549250,  278// 40 - 47
              500500500500,  500,  500500,  500// 48 - 55
              500500278278,  549,  549549,  444// 56 - 63
              549722667722,  612,  611763,  603// 64 - 71
              722333631722,  686,  889722,  722// 72 - 79
              768741556592,  611,  690439,  768// 80 - 87
              645795611333,  863,  333658,  500// 88 - 95
              500631549549,  494,  439521,  411// 96 - 103
              603329603549,  549,  576521,  549// 104 - 111
              549521549603,  439,  576713,  686// 112 - 119
              493686494480,  200,  480549,  0// 120 - 127
              0,   0,   0,   0,    0,    0,   0,    0// 128 - 135
              0,   0,   0,   0,    0,    0,   0,    0// 136 - 143
              0,   0,   0,   0,    0,    0,   0,    0// 144 - 151
              0,   0,   0,   0,    0,    0,   0,    0// 152 - 159
              750620247549,  167,  713500,  753// 160 - 167
              7537537531042987,  603987,  603// 168 - 175
              400549411549,  549,  713494,  460// 176 - 183
              549549549549,  10006031000658// 184 - 191
              823686795987,  768,  768823,  768// 192 - 199
              768713713713,  713,  713713,  713// 200 - 207
              768713790790,  890,  823549,  250// 208 - 215
              7136036031042987,  603987,  603// 216 - 223
              494329790790,  786,  713384,  384// 224 - 231
              384384384384,  494,  494494,  494// 232 - 239
              0,   329274686,  686,  686384,  384// 240 - 247
              384384384384,  494,  494494,  0 // 248 - 255
          },
          FontCharMapRef() },

        { u"ZapfDingbats"_ustr, // family name
          u"Normal"_ustr, // style
          "ZapfDingbats"// PSName
          820,
          -143// ascend, descend
          FAMILY_DONTKNOW, // family style
          RTL_TEXTENCODING_ADOBE_DINGBATS, // charset
          PITCH_VARIABLE, // pitch
          WIDTH_NORMAL, // width type
          WEIGHT_NORMAL, // weight type
          ITALIC_NONE, // italic type
          {
              0,   0,   0,   0,   0,   0,   0,    0// 0 - 7
              0,   0,   0,   0,   0,   0,   0,    0// 8 - 15
              0,   0,   0,   0,   0,   0,   0,    0// 16 - 23
              0,   0,   0,   0,   0,   0,   0,    0// 24 - 31
              278974961974980719789,  790// 32 - 39
              791690960939549855911,  933// 40 - 47
              911945974755846762761,  571// 48 - 55
              677763760759754494552,  537// 56 - 63
              577692786788788790793,  794// 64 - 71
              816823789841823833816,  831// 72 - 79
              923744723749790792695,  776// 80 - 87
              768792759707708682701,  826// 88 - 95
              815789789707687696689,  786// 96 - 103
              787713791785791873761,  762// 104 - 111
              762759759892892788784,  438// 112 - 119
              138277415392392668668,  0// 120 - 127
              390390317317276276509,  509// 128 - 135
              4104102342343343340,    0// 136 - 143
              0,   0,   0,   0,   0,   0,   0,    0// 144 - 151
              0,   0,   0,   0,   0,   0,   0,    0// 152 - 159
              0,   732544544910667760,  760// 160 - 167
              776595694626788788788,  788// 168 - 175
              788788788788788788788,  788// 176 - 183
              788788788788788788788,  788// 184 - 191
              788788788788788788788,  788// 192 - 199
              788788788788788788788,  788// 200 - 207
              7887887887888948381016458// 208 - 215
              748924748918927928928,  834// 216 - 223
              873828924924917930931,  463// 224 - 231
              883836836867867696696,  874// 232 - 239
              0,   874760946771865771,  888// 240 - 247
              967888831873927970918,  0 // 248 - 255
          },
          FontCharMapRef() }

      };

BuildinFontInstance::BuildinFontInstance(const vcl::font::PhysicalFontFace& rFontFace,
                                         const vcl::font::FontSelectPattern& rFSP)
    : LogicalFontInstance(rFontFace, rFSP)
{
}

bool BuildinFontInstance::GetGlyphOutline(sal_GlyphId, basegfx::B2DPolyPolygon&, ;boolconst
{
    return false;
}

BuildinFontFace::BuildinFontFace(int nId)
    : vcl::font::PhysicalFontFace(m_aBuildinFonts[nId].GetFontAttributes())
    , mrBuildin(m_aBuildinFonts[nId])
{
}

rtl::Reference<LogicalFontInstance>
BuildinFontFace::CreateFontInstance(const vcl::font::FontSelectPattern& rFSP) const
{
    return new BuildinFontInstance(*this, rFSP);
}

// namespace vcl::pdf

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=22 H=94 G=67

¤ Dauer der Verarbeitung: 0.15 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.