| 
    KiCad PCB EDA Suite
    
   | 
 
#include <list>#include <mutex>#include <unordered_map>#include <macros.h>#include <string_utils.h>#include <gal/graphics_abstraction_layer.h>#include <font/stroke_font.h>#include <font/outline_font.h>#include <trigo.h>#include <markup_parser.h>#include <font/kicad_font_name.h>#include <wx/tokenzr.h>Go to the source code of this file.
Classes | |
| class | MARKUP_CACHE | 
| struct | MARKUP_CACHE::ENTRY | 
Functions | |
| VECTOR2I | drawMarkup (BOX2I *aBoundingBox, std::vector< std::unique_ptr< GLYPH > > *aGlyphs, const MARKUP::NODE *aNode, const VECTOR2I &aPosition, const KIFONT::FONT *aFont, const VECTOR2I &aSize, const EDA_ANGLE &aAngle, bool aMirror, const VECTOR2I &aOrigin, TEXT_STYLE_FLAGS aTextStyle, const METRICS &aFontMetrics) | 
| void | wordbreakMarkup (std::vector< std::pair< wxString, int > > *aWords, const std::unique_ptr< MARKUP::NODE > &aNode, const KIFONT::FONT *aFont, const VECTOR2I &aSize, TEXT_STYLE_FLAGS aTextStyle) | 
| Break marked-up text into "words".   | |
Variables | |
| METRICS | g_defaultMetrics | 
| static MARKUP_CACHE | s_markupCache (1024) | 
| static std::mutex | s_markupCacheMutex | 
| static std::mutex | s_defaultFontMutex | 
| VECTOR2I drawMarkup | ( | BOX2I * | aBoundingBox, | 
| std::vector< std::unique_ptr< GLYPH > > * | aGlyphs, | ||
| const MARKUP::NODE * | aNode, | ||
| const VECTOR2I & | aPosition, | ||
| const KIFONT::FONT * | aFont, | ||
| const VECTOR2I & | aSize, | ||
| const EDA_ANGLE & | aAngle, | ||
| bool | aMirror, | ||
| const VECTOR2I & | aOrigin, | ||
| TEXT_STYLE_FLAGS | aTextStyle, | ||
| const METRICS & | aFontMetrics ) | 
Definition at line 280 of file font.cpp.
References KIFONT::STROKE_GLYPH::AddPoint(), MARKUP::NODE::asWxString(), drawMarkup(), KIFONT::STROKE_GLYPH::Finalize(), KIFONT::METRICS::GetOverbarVerticalPosition(), KIFONT::FONT::GetTextAsGlyphs(), KIFONT::METRICS::GetUnderlineVerticalPosition(), MARKUP::NODE::isOverbar(), MARKUP::NODE::isSubscript(), MARKUP::NODE::isSuperscript(), BOX2< Vec >::Merge(), SUBSCRIPT, SUPERSCRIPT, KIFONT::STROKE_GLYPH::Transform(), UNDERLINE, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by drawMarkup().
| void wordbreakMarkup | ( | std::vector< std::pair< wxString, int > > * | aWords, | 
| const std::unique_ptr< MARKUP::NODE > & | aNode, | ||
| const KIFONT::FONT * | aFont, | ||
| const VECTOR2I & | aSize, | ||
| TEXT_STYLE_FLAGS | aTextStyle ) | 
Break marked-up text into "words".
In this context, a "word" is EITHER a run of marked-up text (subscript, superscript or overbar), OR a run of non-marked-up text separated by spaces.
Definition at line 479 of file font.cpp.
References ANGLE_0, KIFONT::FONT::GetTextAsGlyphs(), next(), OVERBAR, SUBSCRIPT, SUPERSCRIPT, and wordbreakMarkup().
Referenced by wordbreakMarkup().
| METRICS g_defaultMetrics | 
Definition at line 49 of file font.cpp.
Referenced by KIFONT::METRICS::Default().
      
  | 
  static | 
Definition at line 128 of file font.cpp.
Referenced by KIFONT::FONT::getDefaultFont().
      
  | 
  static | 
Referenced by KIFONT::FONT::drawMarkup().
      
  | 
  static | 
Definition at line 127 of file font.cpp.
Referenced by KIFONT::FONT::drawMarkup().