High-fidelity Roboto vector font implementation.
More...
#include <PathFont.hpp>
|
| static std::vector< uint32_t > | utf8ToUnicode (const std::string &utf8_string) |
|
| std::map< uint32_t, Glyph > | glyphs_ |
| | Local storage for character glyph data.
|
High-fidelity Roboto vector font implementation.
◆ Roboto()
| correlation::plotters::Roboto::Roboto |
( |
| ) |
|
|
private |
◆ add() [1/2]
◆ add() [2/2]
| void correlation::plotters::Roboto::add |
( |
uint32_t | code_point, |
|
|
real_t | left_bearing, |
|
|
real_t | right_bearing, |
|
|
std::span< const Point2D > | points, |
|
|
std::span< const size_t > | stroke_lengths ) |
|
private |
◆ instance()
| Roboto & correlation::plotters::Roboto::instance |
( |
| ) |
|
|
static |
- Returns
- Singleton instance of the Roboto font.
◆ registerBasic1()
| void correlation::plotters::Roboto::registerBasic1 |
( |
| ) |
|
|
private |
◆ registerBasic2()
| void correlation::plotters::Roboto::registerBasic2 |
( |
| ) |
|
|
private |
◆ registerExtended()
| void correlation::plotters::Roboto::registerExtended |
( |
| ) |
|
|
private |
◆ render()
Renders a string of text as SVG path data using parameters struct.
- Parameters
-
| params | Rendering options including text, coordinates, font size, and text anchor. |
- Returns
- A string containing SVG path instructions (M/L/Z commands).
◆ utf8ToUnicode()
| std::vector< uint32_t > correlation::plotters::Roboto::utf8ToUnicode |
( |
const std::string & | utf8_string | ) |
|
|
staticprivate |
◆ glyphs_
| std::map<uint32_t, Glyph> correlation::plotters::Roboto::glyphs_ |
|
private |
Local storage for character glyph data.
The documentation for this class was generated from the following files: