bpp-core3
3.0.0
XFigPostscriptFontManager.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: The Bio++ Development Group
2
//
3
// SPDX-License-Identifier: CECILL-2.1
4
5
#include "
XFigPostscriptFontManager.h
"
6
7
using namespace
bpp
;
8
9
XFigPostscriptFontManager::XFigPostscriptFontManager
()
10
{
11
// Add "official" font codes, from 0 to 34:
12
registerFont_
(
Font
(
"Default"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), -1);
13
registerFont_
(
Font
(
"Times"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 0);
// Roman
14
registerFont_
(
Font
(
"Times"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 1);
15
registerFont_
(
Font
(
"Times"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 2);
16
registerFont_
(
Font
(
"Times"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 3);
17
registerFont_
(
Font
(
"AvantGarde"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 4);
// Book
18
registerFont_
(
Font
(
"AvantGarde"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 5);
// Book Oblique
19
registerFont_
(
Font
(
"AvantGarde"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 6);
// Demi
20
registerFont_
(
Font
(
"AvantGarde"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 7);
// Demi Oblique
21
registerFont_
(
Font
(
"Bookman"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 8);
// Light
22
registerFont_
(
Font
(
"Bookman"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 9);
// Light Italic
23
registerFont_
(
Font
(
"Bookman"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 10);
// Demi
24
registerFont_
(
Font
(
"Bookman"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 11);
// Demi Italic
25
registerFont_
(
Font
(
"Courier"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 12);
26
registerFont_
(
Font
(
"Courier"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 13);
// Oblique
27
registerFont_
(
Font
(
"Courier"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 14);
// Bold
28
registerFont_
(
Font
(
"Courier"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 15);
// Bold Oblique
29
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 16);
30
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 17);
// Oblique
31
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 18);
// Bold
32
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 19);
// Bold Oblique
33
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 20);
// Narrow
34
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 21);
// Narrow Oblique
35
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 22);
// Narrow Bold
36
registerFont_
(
Font
(
"Helvetica"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 23);
// Narrow Bold Oblique
37
registerFont_
(
Font
(
"New Century Schoolbook"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 24);
// Roman
38
registerFont_
(
Font
(
"New Century Schoolbook"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 25);
// Italic
39
registerFont_
(
Font
(
"New Century Schoolbook"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 26);
// Bold
40
registerFont_
(
Font
(
"New Century Schoolbook"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 27);
// Bold Italic
41
registerFont_
(
Font
(
"Palatino"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 28);
// Roman
42
registerFont_
(
Font
(
"Palatino"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 29);
// Italic
43
registerFont_
(
Font
(
"Palatino"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_BOLD
, 12), 30);
// Bold
44
registerFont_
(
Font
(
"Palatino"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_BOLD
, 12), 31);
// Bold Italic
45
registerFont_
(
Font
(
"Symbol"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 32);
46
registerFont_
(
Font
(
"Zapf Chancery Medium"
,
Font::STYLE_ITALIC
,
Font::WEIGHT_NORMAL
, 12), 33);
// Italic
47
registerFont_
(
Font
(
"Zapf Dingbats"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 34);
48
}
XFigPostscriptFontManager.h
bpp::Font::WEIGHT_NORMAL
static const short int WEIGHT_NORMAL
Definition:
Font.h:131
bpp::Font::STYLE_NORMAL
static const short int STYLE_NORMAL
Definition:
Font.h:128
bpp::Font
Data structure for fonts.
Definition:
Font.h:21
bpp
Definition:
ApplicationTools.h:22
bpp::AbstractFontManager< int >::registerFont_
void registerFont_(const Font &font, int code)
Definition:
FontManager.h:102
bpp::Font::STYLE_ITALIC
static const short int STYLE_ITALIC
Definition:
Font.h:129
bpp::Font::WEIGHT_BOLD
static const short int WEIGHT_BOLD
Definition:
Font.h:132
bpp::XFigPostscriptFontManager::XFigPostscriptFontManager
XFigPostscriptFontManager()
Definition:
XFigPostscriptFontManager.cpp:9
Bpp
Graphics
Fig
XFigPostscriptFontManager.cpp
Generated on Wed Jul 3 2024 10:53:56 for bpp-core3 by
1.8.13