KiCad PCB EDA Suite
|
#include <iostream>
#include <map>
#include <algorithm>
#include <wx/string.h>
#include <font/glyph.h>
#include <font/text_attributes.h>
Go to the source code of this file.
Classes | |
class | KIFONT::FONT |
FONT is an abstract base class for both outline and stroke fonts. More... | |
Namespaces | |
namespace | KIGFX |
The Cairo implementation of the graphics abstraction layer. | |
namespace | KIFONT |
Typedefs | |
using | TEXT_STYLE_FLAGS = unsigned int |
Enumerations | |
enum | TEXT_STYLE { BOLD = 1 , ITALIC = 1 << 1 , SUBSCRIPT = 1 << 2 , SUPERSCRIPT = 1 << 3 , OVERBAR = 1 << 4 , UNDERLINE = 1 << 5 } |
Functions | |
bool | IsBold (TEXT_STYLE_FLAGS aFlags) |
bool | IsItalic (TEXT_STYLE_FLAGS aFlags) |
bool | IsSuperscript (TEXT_STYLE_FLAGS aFlags) |
bool | IsSubscript (TEXT_STYLE_FLAGS aFlags) |
bool | IsOverbar (TEXT_STYLE_FLAGS aFlags) |
std::string | TextStyleAsString (TEXT_STYLE_FLAGS aFlags) |
std::ostream & | operator<< (std::ostream &os, const KIFONT::FONT &aFont) |
std::ostream & | operator<< (std::ostream &os, const KIFONT::FONT *aFont) |
Variables | |
static constexpr double | ITALIC_TILT = 1.0 / 8 |
Tilt factor for italic style (this is the scaling factor on dY relative coordinates to give a tilted shape). More... | |
using TEXT_STYLE_FLAGS = unsigned int |
enum TEXT_STYLE |
|
inline |
|
inline |
|
inline |
Definition at line 90 of file font.h.
References OVERBAR.
Referenced by KIFONT::OUTLINE_FONT::getTextAsGlyphs().
|
inline |
Definition at line 84 of file font.h.
References SUBSCRIPT.
Referenced by KIFONT::OUTLINE_FONT::getTextAsGlyphs().
|
inline |
Definition at line 78 of file font.h.
References SUPERSCRIPT.
Referenced by KIFONT::OUTLINE_FONT::getTextAsGlyphs().
|
inline |
Definition at line 274 of file font.h.
References KIFONT::FONT::GetName(), KIFONT::FONT::IsBold(), KIFONT::FONT::IsItalic(), KIFONT::FONT::IsOutline(), and KIFONT::FONT::IsStroke().
|
inline |
std::string TextStyleAsString | ( | TEXT_STYLE_FLAGS | aFlags | ) |
|
staticconstexpr |
Tilt factor for italic style (this is the scaling factor on dY relative coordinates to give a tilted shape).
This is applied directly to stroke fonts, and is used as an estimate for outline fonts (which have the actual tilt built in to their polygonal glyph outlines).
Definition at line 60 of file font.h.
Referenced by KIFONT::OUTLINE_FONT::getTextAsGlyphs(), KIFONT::STROKE_FONT::GetTextAsGlyphs(), and EDA_TEXT::GetTextBox().