LibreOffice Module unotools (master) 1
Functions | Variables
fontcvt.cxx File Reference
#include <sal/config.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <unotools/fontcvt.hxx>
#include <unotools/fontdefs.hxx>
#include <cstddef>
#include <map>
#include <vector>
Include dependency graph for fontcvt.cxx:

Go to the source code of this file.

Functions

static sal_Unicode ImplStarSymbolToStarBats (sal_Unicode c)
 
static const char * SymbolFontToString (int nResult)
 
StarSymbolToMSMultiFontCreateStarSymbolToMSMultiFont ()
 
FontToSubsFontConverter CreateFontToSubsFontConverter (std::u16string_view rOrgName, FontToSubsFontFlags nFlags)
 
sal_Unicode ConvertFontToSubsFontChar (FontToSubsFontConverter hConverter, sal_Unicode cChar)
 
OUString GetFontToSubsFontName (FontToSubsFontConverter hConverter)
 

Variables

const sal_Unicode aStarBatsTab [224]
 
const sal_Unicode aStarMathTab [224]
 
const sal_Unicode aWingDingsTab [224]
 
const sal_Unicode aWingDings2Tab [224]
 
const sal_Unicode aWingDings3Tab [224]
 
const sal_Unicode aWebDingsTab [224]
 
const sal_Unicode aAdobeSymbolTab [224]
 
const sal_Unicode aMonotypeSortsTab [224]
 
const sal_Unicode aMTExtraTab [224]
 
const sal_Unicode aAdobeSymbolToAppleSymbolTab [224]
 
const char *const aSymbolNames []
 
ExtraTable const aWingDingsExtraTab []
 
ExtraTable const aSymbolExtraTab2 []
 
ExtraTable const aSymbolExtraTab []
 
ExtraTable const aTNRExtraTab []
 
const RecodeTable aStarSymbolRecodeTable []
 
const RecodeTable aAppleSymbolRecodeTable []
 
static ConvertChar aImplStarSymbolCvt = { nullptr, "StarBats", ImplStarSymbolToStarBats }
 

Function Documentation

◆ ConvertFontToSubsFontChar()

sal_Unicode ConvertFontToSubsFontChar ( FontToSubsFontConverter  hConverter,
sal_Unicode  cChar 
)

Definition at line 1414 of file fontcvt.cxx.

◆ CreateFontToSubsFontConverter()

FontToSubsFontConverter CreateFontToSubsFontConverter ( std::u16string_view  rOrgName,
FontToSubsFontFlags  nFlags 
)

◆ CreateStarSymbolToMSMultiFont()

StarSymbolToMSMultiFont * CreateStarSymbolToMSMultiFont ( )

Definition at line 1235 of file fontcvt.cxx.

◆ GetFontToSubsFontName()

OUString GetFontToSubsFontName ( FontToSubsFontConverter  hConverter)

Definition at line 1423 of file fontcvt.cxx.

References pName.

◆ ImplStarSymbolToStarBats()

static sal_Unicode ImplStarSymbolToStarBats ( sal_Unicode  c)
static

Definition at line 781 of file fontcvt.cxx.

◆ SymbolFontToString()

static const char * SymbolFontToString ( int  nResult)
static

Definition at line 1202 of file fontcvt.cxx.

References aSymbolNames, and Symbol.

Variable Documentation

◆ aAdobeSymbolTab

const sal_Unicode aAdobeSymbolTab[224]

Definition at line 484 of file fontcvt.cxx.

◆ aAdobeSymbolToAppleSymbolTab

const sal_Unicode aAdobeSymbolToAppleSymbolTab[224]

Definition at line 707 of file fontcvt.cxx.

◆ aAppleSymbolRecodeTable

const RecodeTable aAppleSymbolRecodeTable[]
Initial value:
= {
{"symbol", {aAdobeSymbolToAppleSymbolTab, "AppleSymbol", nullptr}}
}
const sal_Unicode aAdobeSymbolToAppleSymbolTab[224]
Definition: fontcvt.cxx:707

Definition at line 1332 of file fontcvt.cxx.

◆ aImplStarSymbolCvt

ConvertChar aImplStarSymbolCvt = { nullptr, "StarBats", ImplStarSymbolToStarBats }
static

Definition at line 1336 of file fontcvt.cxx.

Referenced by CreateFontToSubsFontConverter().

◆ aMonotypeSortsTab

const sal_Unicode aMonotypeSortsTab[224]

Definition at line 559 of file fontcvt.cxx.

◆ aMTExtraTab

const sal_Unicode aMTExtraTab[224]

Definition at line 633 of file fontcvt.cxx.

◆ aStarBatsTab

const sal_Unicode aStarBatsTab[224]

Definition at line 37 of file fontcvt.cxx.

◆ aStarMathTab

const sal_Unicode aStarMathTab[224]

Definition at line 111 of file fontcvt.cxx.

◆ aStarSymbolRecodeTable

const RecodeTable aStarSymbolRecodeTable[]
Initial value:
=
{
{"starbats", {aStarBatsTab, "StarSymbol", nullptr}},
{"starmath", {aStarMathTab, "StarSymbol", nullptr}},
{"symbol", {aAdobeSymbolTab, "StarSymbol", nullptr}},
{"standardsymbols", {aAdobeSymbolTab, "StarSymbol", nullptr}},
{"standardsymbolsl",{aAdobeSymbolTab, "StarSymbol", nullptr}},
{"monotypesorts", {aMonotypeSortsTab, "StarSymbol", nullptr}},
{"zapfdingbats", {aMonotypeSortsTab, "StarSymbol", nullptr}},
{"itczapfdingbats", {aMonotypeSortsTab, "StarSymbol", nullptr}},
{"dingbats", {aMonotypeSortsTab, "StarSymbol", nullptr}},
{"webdings", {aWebDingsTab, "StarSymbol", nullptr}},
{"wingdings", {aWingDingsTab, "StarSymbol", nullptr}},
{"wingdings2", {aWingDings2Tab, "StarSymbol", nullptr}},
{"wingdings3", {aWingDings3Tab, "StarSymbol", nullptr}},
{"mtextra", {aMTExtraTab, "StarSymbol", nullptr}}
}
const sal_Unicode aWebDingsTab[224]
Definition: fontcvt.cxx:407
const sal_Unicode aWingDings2Tab[224]
Definition: fontcvt.cxx:259
const sal_Unicode aWingDingsTab[224]
Definition: fontcvt.cxx:185
const sal_Unicode aWingDings3Tab[224]
Definition: fontcvt.cxx:333
const sal_Unicode aStarBatsTab[224]
Definition: fontcvt.cxx:37
const sal_Unicode aMTExtraTab[224]
Definition: fontcvt.cxx:633
const sal_Unicode aMonotypeSortsTab[224]
Definition: fontcvt.cxx:559
const sal_Unicode aAdobeSymbolTab[224]
Definition: fontcvt.cxx:484
const sal_Unicode aStarMathTab[224]
Definition: fontcvt.cxx:111

Definition at line 1308 of file fontcvt.cxx.

Referenced by CreateFontToSubsFontConverter().

◆ aSymbolExtraTab

ExtraTable const aSymbolExtraTab[]
Initial value:
=
{
{0xe021, 0xD3}, {0xe024, 0xD2}, {0xe035, 0x20}, {0xe036, 0x28},
{0xe037, 0x29}, {0xe039, 0x20}, {0xe083, 0x2B}, {0xe084, 0x3C},
{0xe085, 0x3E}, {0xe086, 0xA3}, {0xe087, 0xB3}, {0xe089, 0xCE},
{0xe08a, 0xA6}, {0xe08c, 0xAE}, {0xe08d, 0xD6}, {0xe08e, 0xD6},
{0xe08f, 0xD6}, {0xe094, 0xA2}, {0xe09e, 0x28}, {0xe09f, 0x29},
{0xe0a0, 0xD0}, {0xe0a6, 0xA2}, {0xe0a7, 0x7C}, {0xe0a8, 0x2F},
{0xe0ab, 0x7C}, {0xe0ac, 0x47}, {0xe0ad, 0x44}, {0xe0ae, 0x51},
{0xe0af, 0x4C}, {0xe0b0, 0x58}, {0xe0b1, 0x50}, {0xe0b2, 0x53},
{0xe0b3, 0x55}, {0xe0b4, 0x46}, {0xe0b5, 0x59}, {0xe0b6, 0x57},
{0xe0b7, 0x61}, {0xe0b8, 0x62}, {0xe0b9, 0x67}, {0xe0ba, 0x64},
{0xe0bb, 0x65}, {0xe0bc, 0x7A}, {0xe0bd, 0x68}, {0xe0be, 0x71},
{0xe0bf, 0x69}, {0xe0c0, 0x6B}, {0xe0c1, 0x6C}, {0xe0c2, 0x6D},
{0xe0c3, 0x6E}, {0xe0c4, 0x78}, {0xe0c5, 0x6F}, {0xe0c6, 0x70},
{0xe0c7, 0x72}, {0xe0c8, 0x73}, {0xe0c9, 0x74}, {0xe0ca, 0x75},
{0xe0cb, 0x66}, {0xe0cc, 0x63}, {0xe0cd, 0x79}, {0xe0ce, 0x77},
{0xe0cf, 0x65}, {0xe0d0, 0x4A}, {0xe0d1, 0x76}, {0xe0d3, 0x56},
{0xe0d4, 0x6A}, {0xe0d5, 0xB6}, {0xe0d6, 0x69}, {0xe0db, 0xAC},
{0xe0dc, 0xAD}, {0xe0dd, 0xAF}
}

Definition at line 1094 of file fontcvt.cxx.

◆ aSymbolExtraTab2

ExtraTable const aSymbolExtraTab2[]
Initial value:
=
{
{0x0020, 0x20}, {0x00A0, 0x20}, {0x0021, 0x21}, {0x2200, 0x22},
{0x0023, 0x23}, {0x2203, 0x24}, {0x0025, 0x25}, {0x0026, 0x26},
{0x220B, 0x27}, {0x0028, 0x28}, {0x0029, 0x29}, {0x2217, 0x2A},
{0x002B, 0x2B}, {0x002C, 0x2C}, {0x2212, 0x2D}, {0x002E, 0x2E},
{0x002F, 0x2F}, {0x003A, 0x3A}, {0x003B, 0x3B}, {0x003C, 0x3C},
{0x003D, 0x3D}, {0x003E, 0x3E}, {0x2245, 0x40}, {0x2206, 0x44},
{0x2126, 0x57}, {0x005B, 0x5B}, {0x005D, 0x5D}, {0x22A5, 0x5E},
{0x03C6, 0x66}, {0x03D5, 0x6A}, {0x00B5, 0x6D}, {0x007B, 0x7B},
{0x007C, 0x7C}, {0x007D, 0x7D}, {0x223C, 0x7E}, {0x20AC, 0xA0},
{0x2032, 0xA2}, {0x2264, 0xA3}, {0x2044, 0xA4}, {0x221E, 0xA5},
{0x0192, 0xA6}, {0x2663, 0xA7}, {0x2665, 0xA9}, {0x2660, 0xAA},
{0x2194, 0xAB}, {0x2190, 0xAC}, {0x2191, 0xAD}, {0x2192, 0xAE},
{0x2193, 0xAF}, {0x00B0, 0xB0}, {0x00B1, 0xB1}, {0x2265, 0xB3},
{0x00D7, 0xB4}, {0x221D, 0xB5}, {0x2202, 0xB6}, {0x2022, 0xB7},
{0x00F7, 0xB8}, {0x2260, 0xB9}, {0x2261, 0xBA}, {0x2248, 0xBB},
{0x2026, 0xBC}, {0x21B5, 0xBF}, {0x2135, 0xC0}, {0x2111, 0xC1},
{0x211C, 0xC2}, {0x2118, 0xC3}, {0x2297, 0xC4}, {0x2295, 0xC5},
{0x2205, 0xC6}, {0x2229, 0xC7}, {0x222A, 0xC8}, {0x2283, 0xC9},
{0x2287, 0xCA}, {0x2284, 0xCB}, {0x2282, 0xCC}, {0x2286, 0xCD},
{0x2208, 0xCE}, {0x2209, 0xCF}, {0x2207, 0xD1}, {0x220F, 0xD5},
{0x221A, 0xD6}, {0x22C5, 0xD7}, {0x00AC, 0xD8}, {0x2227, 0xD9},
{0x2228, 0xDA}, {0x21D4, 0xDB}, {0x21D0, 0xDC}, {0x21D2, 0xDE},
{0x2329, 0xE1}, {0x2211, 0xE5}, {0x232A, 0xF1}, {0x222B, 0xF2},
{0x2320, 0xF3}, {0x2321, 0xF5}, {0x2013, 0x2D}
}

Definition at line 1066 of file fontcvt.cxx.

◆ aSymbolNames

const char* const aSymbolNames[]
Initial value:
=
{
"Symbol", "Wingdings", "Monotype Sorts", "Webdings", "Wingdings 2",
"Wingdings 3", "MT Extra", "Times New Roman"
}

Definition at line 1021 of file fontcvt.cxx.

Referenced by SymbolFontToString().

◆ aTNRExtraTab

ExtraTable const aTNRExtraTab[]
Initial value:
=
{
{0xe021, 0xA9},
{0xe022, 0x40},
{0xe024, 0xAE},
{0xe035, 0x20},
{0xe036, '('},
{0xe037, ')'},
{0xe039, 0x20},
{0xe03a, 0x80},
{0xe080, 0x89},
{0xe083, '+'},
{0xe084, '<'},
{0xe085, '>'},
{0xe0a9, '\\'}
}

Definition at line 1116 of file fontcvt.cxx.

◆ aWebDingsTab

const sal_Unicode aWebDingsTab[224]

Definition at line 407 of file fontcvt.cxx.

◆ aWingDings2Tab

const sal_Unicode aWingDings2Tab[224]

Definition at line 259 of file fontcvt.cxx.

◆ aWingDings3Tab

const sal_Unicode aWingDings3Tab[224]

Definition at line 333 of file fontcvt.cxx.

◆ aWingDingsExtraTab

ExtraTable const aWingDingsExtraTab[]
Initial value:
=
{
{0x25cf, 0x6C}, {0x2714, 0xFC}, {0x2717, 0xFB}, {0x2794, 0xE8},
{0x27a2, 0xD8}, {0xe000, 0x6F}, {0xe001, 0x73}, {0xe002, 0x74},
{0xe003, 0x75}, {0xe004, 0x77}, {0xe005, 0xA6}, {0xe006, 0xE0},
{0xe007, 0xFC}, {0xe008, 0x6C}, {0xe009, 0x6D}, {0xe00a, 0x6E},
{0xe00b, 0x72}, {0xe00c, 0x75}, {0xe00d, 0x76}, {0xe00e, 0x74},
{0xe00f, 0x8B}, {0xe010, 0x80}, {0xe011, 0x2B}, {0xe012, 0x3A},
{0xe013, 0x5D}, {0xe014, 0x29}, {0xe015, 0x3A}, {0xe016, 0x3C},
{0xe017, 0x38}, {0xe018, 0x3A}, {0xe019, 0x2A}, {0xe01a, 0x2B},
{0xe01b, 0x3F}, {0xe01c, 0x9F}, {0xe01d, 0x80}, {0xe01e, 0x8B},
{0xe023, 0x4A}, {0xe025, 0xF0}, {0xe026, 0xF2}, {0xe027, 0xEF},
{0xe028, 0xF1}, {0xe029, 0x52}, {0xe02a, 0x29}, {0xe02b, 0xE0},
{0xe02c, 0xE2}, {0xe02d, 0xDF}, {0xe02e, 0xE1}, {0xe02f, 0xAC},
{0xe030, 0xAD}, {0xe031, 0xAE}, {0xe032, 0x7C}, {0xe033, 0x43},
{0xe034, 0x4D}, {0xe0aa, 0x71}, {0xe422, 0x44}
}

Definition at line 1048 of file fontcvt.cxx.

◆ aWingDingsTab

const sal_Unicode aWingDingsTab[224]

Definition at line 185 of file fontcvt.cxx.