bpp-core3
3.0.0
XFigLaTeXFontManager.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 "
XFigLaTeXFontManager.h
"
6
7
using namespace
bpp
;
8
9
XFigLaTeXFontManager::XFigLaTeXFontManager
()
10
{
11
// Add "official" font codes, from 0 to 5:
12
registerFont_
(
Font
(
"Default"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 0);
13
registerFont_
(
Font
(
"Roman"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 1);
14
registerFont_
(
Font
(
"Bold"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 2);
15
registerFont_
(
Font
(
"Italic"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 3);
16
registerFont_
(
Font
(
"Sans Serif"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 4);
17
registerFont_
(
Font
(
"Typewriter"
,
Font::STYLE_NORMAL
,
Font::WEIGHT_NORMAL
, 12), 5);
18
}
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
XFigLaTeXFontManager.h
bpp::XFigLaTeXFontManager::XFigLaTeXFontManager
XFigLaTeXFontManager()
Definition:
XFigLaTeXFontManager.cpp:9
Bpp
Graphics
Fig
XFigLaTeXFontManager.cpp
Generated on Wed Jul 3 2024 10:53:56 for bpp-core3 by
1.8.13