CPP-TOOLBOX
Loading...
Searching...
No Matches
grid_font Namespace Reference

Enumerations

enum class  TextJustification { Left , Center , Right }
 

Functions

draw_info::IndexedVertexPositions get_text_geometry (const std::string &text, vertex_geometry::Rectangle bounding_rect)
 

Variables

std::string zero
 
std::string one
 
std::string two
 
std::string three
 
std::string four
 
std::string five
 
std::string six
 
std::string seven
 
std::string eight
 
std::string nine
 
std::string a_upper
 
std::string b_upper
 
std::string c_upper
 
std::string d_upper
 
std::string e_upper
 
std::string f_upper
 
std::string g_upper
 
std::string h_upper
 
std::string i_upper
 
std::string j_upper
 
std::string k_upper
 
std::string l_upper
 
std::string m_upper
 
std::string n_upper
 
std::string o_upper
 
std::string p_upper
 
std::string q_upper
 
std::string r_upper
 
std::string s_upper
 
std::string t_upper
 
std::string u_upper
 
std::string v_upper
 
std::string w_upper
 
std::string x_upper
 
std::string y_upper
 
std::string z_upper
 
std::string a_lower
 
std::string b_lower
 
std::string c_lower
 
std::string d_lower
 
std::string e_lower
 
std::string f_lower
 
std::string g_lower
 
std::string h_lower
 
std::string i_lower
 
std::string j_lower
 
std::string k_lower
 
std::string l_lower
 
std::string m_lower
 
std::string n_lower
 
std::string o_lower
 
std::string p_lower
 
std::string q_lower
 
std::string r_lower
 
std::string s_lower
 
std::string t_lower
 
std::string u_lower
 
std::string v_lower
 
std::string w_lower
 
std::string x_lower
 
std::string y_lower
 
std::string z_lower
 
std::string mu
 
std::string exclamation
 
std::string question
 
std::string hash
 
std::string dollar
 
std::string percent
 
std::string plus
 
std::string minus
 
std::string ampersand
 
std::string asterisk
 
std::string at_symbol
 
std::string period
 
std::string comma
 
std::string colon
 
std::string angle_bracket_left
 
std::string angle_bracket_right
 
std::string forward_slash
 
std::string back_slash
 
std::string parenthesis_left
 
std::string parenthesis_right
 
std::unordered_map< char, std::string > character_to_text_grid
 

Enumeration Type Documentation

◆ TextJustification

enum class grid_font::TextJustification
strong
Enumerator
Left 
Center 
Right 

Function Documentation

◆ get_text_geometry()

draw_info::IndexedVertexPositions grid_font::get_text_geometry ( const std::string & text,
vertex_geometry::Rectangle bounding_rect )

Variable Documentation

◆ a_lower

std::string grid_font::a_lower
Initial value:
= R"(
----------
----------
----------
----------
-****-----
----**----
-*****----
**--**----
**--**----
-******---
----------
----------
----------
)"

◆ a_upper

std::string grid_font::a_upper
Initial value:
= R"(
----------
----------
-*****----
---***----
--**-**---
--**-**---
--**-**---
-*******--
-**---**--
****-****-
----------
----------
----------
)"

◆ ampersand

std::string grid_font::ampersand
Initial value:
= R"(
----------
----------
--****----
-**-------
-**-------
-**-------
****-**---
**-***----
**--**----
-******---
----------
----------
----------
)"

◆ angle_bracket_left

std::string grid_font::angle_bracket_left
Initial value:
= R"(
----------
----*--
---*---
--*----
---*---
----*--
)"

◆ angle_bracket_right

std::string grid_font::angle_bracket_right
Initial value:
= R"(
----------
--*----
---*---
----*--
---*---
--*----
)"

◆ asterisk

std::string grid_font::asterisk
Initial value:
= R"(
----------
--**------
--**------
******----
-****-----
-****-----
-*--*-----
----------
----------
----------
----------
----------
----------
)"

◆ at_symbol

std::string grid_font::at_symbol
Initial value:
= R"(
----------
--***-----
-*---*----
*----*----
*--***----
*-*--*----
*-*--*----
*--***----
*---------
-*---*----
--***-----
----------
----------
)"

◆ b_lower

std::string grid_font::b_lower
Initial value:
= R"(
----------
***-------
-**-------
-**-------
-**-**----
-***-**---
-**--**---
-**--**---
-***-**---
***-**----
----------
----------
----------
)"

◆ b_upper

std::string grid_font::b_upper
Initial value:
= R"(
----------
----------
******----
-**--**---
-**--**---
-*****----
-**--**---
-**--**---
-**--**---
******----
----------
----------
----------
)"

◆ back_slash

std::string grid_font::back_slash
Initial value:
= R"(
**--------
**--------
-**-------
-**-------
-**-------
--**------
--**------
---**-----
---**-----
---**-----
----**----
----**----
----------
)"

◆ c_lower

std::string grid_font::c_lower
Initial value:
= R"(
----------
----------
----------
----------
-*****----
**---*----
**---*----
**--------
**---*----
-****-----
----------
----------
----------
)"

◆ c_upper

std::string grid_font::c_upper
Initial value:
= R"(
----------
----------
--****----
-**--*----
**---*----
**--------
**--------
**--------
-**--*----
--****----
----------
----------
----------
)"

◆ character_to_text_grid

std::unordered_map<char, std::string> grid_font::character_to_text_grid

◆ colon

std::string grid_font::colon
Initial value:
= R"(
----------
-------
---*---
-------
---*---
-------
)"

◆ comma

std::string grid_font::comma
Initial value:
= R"(
----------
-------
-------
-------
--*----
-*-----
)"

◆ d_lower

std::string grid_font::d_lower
Initial value:
= R"(
----------
---***----
----**----
----**----
-**-**----
**-***----
**--**----
**--**----
**-***----
-**-***---
----------
----------
----------
)"

◆ d_upper

std::string grid_font::d_upper
Initial value:
= R"(
----------
----------
*****-----
-**-**----
-**--**---
-**--**---
-**--**---
-**--**---
-**-**----
*****-----
----------
----------
----------
)"

◆ dollar

std::string grid_font::dollar
Initial value:
= R"(
----------
---*---
-*****-
-*-*---
-*****-
---*---
)"

◆ e_lower

std::string grid_font::e_lower
Initial value:
= R"(
----------
----------
----------
----------
-****-----
**--**----
******----
**--------
**---*----
-****-----
----------
----------
----------
)"

◆ e_upper

std::string grid_font::e_upper
Initial value:
= R"(
----------
----------
*******---
-**---*---
-**-*-*---
-****-----
-**-*-----
-**---*---
-**---*---
*******---
----------
----------
----------
)"

◆ eight

std::string grid_font::eight
Initial value:
= R"(
----------
-****-----
**--**----
**--**----
**--**----
-****-----
**--**----
**--**----
**--**----
-****-----
----------
----------
----------
)"

◆ exclamation

std::string grid_font::exclamation
Initial value:
= R"(
----------
---*---
---*---
---*---
-------
---*---
)"

◆ f_lower

std::string grid_font::f_lower
Initial value:
= R"(
----------
---*****--
--**------
--**------
*******---
--**------
--**------
--**------
--**------
*******---
----------
----------
----------
)"

◆ f_upper

std::string grid_font::f_upper
Initial value:
= R"(
----------
----------
*******---
-**---*---
-**-*-*---
-****-----
-**-*-----
-**-------
-**-------
*****-----
----------
----------
----------
)"

◆ five

std::string grid_font::five
Initial value:
= R"(
----------
-*****----
-**-------
-**-------
-****-----
-*--**----
----**----
----**----
*---**----
-****-----
----------
----------
----------
)"

◆ forward_slash

std::string grid_font::forward_slash
Initial value:
= R"(
----**----
----**----
---**-----
---**-----
---**-----
--**------
--**------
-**-------
-**-------
-**-------
**--------
**--------
----------
)"

◆ four

std::string grid_font::four
Initial value:
= R"(
----------
---***----
---***----
--****----
--*-**----
-**-**----
-*--**----
*******---
----**----
--*****---
----------
----------
----------
)"

◆ g_lower

std::string grid_font::g_lower
Initial value:
= R"(
----------
----------
----------
----------
-**-***---
**-***----
**--**----
**--**----
**-***----
-**-**----
----**----
----**----
-****-----
)"

◆ g_upper

std::string grid_font::g_upper
Initial value:
= R"(
----------
----------
-*****----
**---*----
**---*----
**--------
**-****---
**--**----
**--**----
-****-----
----------
----------
----------
)"

◆ h_lower

std::string grid_font::h_lower
Initial value:
= R"(
----------
***-------
-**-------
-**-------
-*****----
-**--**---
-**--**---
-**--**---
-**--**---
***--***--
----------
----------
----------
)"

◆ h_upper

std::string grid_font::h_upper
Initial value:
= R"(
----------
----------
***--***--
-**--**---
-**--**---
-******---
-**--**---
-**--**---
-**--**---
***--***--
----------
----------
----------
)"

◆ hash

std::string grid_font::hash
Initial value:
= R"(
----------
--*-*--
-*****-
--*-*--
-*****-
--*-*--
)"

◆ i_lower

std::string grid_font::i_lower
Initial value:
= R"(
----------
--**------
--**------
----------
****------
--**------
--**------
--**------
--**------
******----
----------
----------
----------
)"

◆ i_upper

std::string grid_font::i_upper
Initial value:
= R"(
----------
----------
******----
--**------
--**------
--**------
--**------
--**------
--**------
******----
----------
----------
----------
)"

◆ j_lower

std::string grid_font::j_lower
Initial value:
= R"(
----------
---**-----
---**-----
----------
******----
----**----
----**----
----**----
----**----
----**----
----**----
----**----
*****-----
)"

◆ j_upper

std::string grid_font::j_upper
Initial value:
= R"(
----------
----------
-*******--
-----**---
-----**---
-----**---
-----**---
**---**---
**---**---
******----
----------
----------
----------
)"

◆ k_lower

std::string grid_font::k_lower
Initial value:
= R"(
----------
***-------
-**-------
-**-------
-**-***---
-**-**----
-****-----
-*****----
-**--**---
***-****--
----------
----------
----------
)"

◆ k_upper

std::string grid_font::k_upper
Initial value:
= R"(
----------
----------
****-***--
-**--**---
-**-**----
-****-----
-*****----
-**--**---
-**--**---
****--**--
----------
----------
----------
)"

◆ l_lower

std::string grid_font::l_lower
Initial value:
= R"(
----------
-****-----
---**-----
---**-----
---**-----
---**-----
---**-----
---**-----
---**-----
********--
----------
----------
----------
)"

◆ l_upper

std::string grid_font::l_upper
Initial value:
= R"(
----------
----------
****------
-**-------
-**-------
-**-------
-**-------
-**---*---
-**---*---
*******---
----------
----------
----------
)"

◆ m_lower

std::string grid_font::m_lower
Initial value:
= R"(
----------
----------
----------
----------
********--
-**-**-**-
-**-**-**-
-**-**-**-
-**-**-**-
***-**-***
----------
----------
----------
)"

◆ m_upper

std::string grid_font::m_upper
Initial value:
= R"(
----------
----------
***---***-
-***-***--
-***-***--
-*******--
-**-*-**--
-**-*-**--
-**---**--
****-****-
----------
----------
----------
)"

◆ minus

std::string grid_font::minus
Initial value:
= R"(
----------
----------
----------
----------
----------
----------
*******---
----------
----------
----------
----------
----------
----------
)"

◆ mu

std::string grid_font::mu
Initial value:
= R"(
----------
----------
----------
----------
***-***---
-**--**---
-**--**---
-**--**---
-**--**---
-*******--
-**-------
-**-------
-**-------
)"

◆ n_lower

std::string grid_font::n_lower
Initial value:
= R"(
----------
----------
----------
----------
******----
-**--**---
-**--**---
-**--**---
-**--**---
***--***--
----------
----------
----------
)"

◆ n_upper

std::string grid_font::n_upper
Initial value:
= R"(
----------
----------
***-****--
-**--**---
-***-**---
-***-**---
-**-***---
-**-***---
-**--**---
****-**---
----------
----------
----------
)"

◆ nine

std::string grid_font::nine
Initial value:
= R"(
----------
-****-----
**--**----
**--**----
**--**----
**-***----
-**-**----
----**----
---**-----
****------
----------
----------
----------
)"

◆ o_lower

std::string grid_font::o_lower
Initial value:
= R"(
----------
----------
----------
----------
-****-----
**--**----
**--**----
**--**----
**--**----
-****-----
----------
----------
----------
)"

◆ o_upper

std::string grid_font::o_upper
Initial value:
= R"(
----------
----------
-****-----
**--**----
**--**----
**--**----
**--**----
**--**----
**--**----
-****-----
----------
----------
----------
)"

◆ one

std::string grid_font::one
Initial value:
= R"(
----------
--**------
****------
--**------
--**------
--**------
--**------
--**------
--**------
******----
----------
----------
----------
)"

◆ p_lower

std::string grid_font::p_lower
Initial value:
= R"(
----------
----------
----------
----------
***-**----
-***-**---
-**--**---
-**--**---
-***-**---
-**-**----
-**-------
-**-------
*****-----
)"

◆ p_upper

std::string grid_font::p_upper
Initial value:
= R"(
----------
----------
******----
-**--**---
-**--**---
-**--**---
-*****----
-**-------
-**-------
****------
----------
----------
----------
)"

◆ parenthesis_left

std::string grid_font::parenthesis_left
Initial value:
= R"(
----------
--*-------
-**-------
-*--------
**--------
**--------
**--------
**--------
**--------
-*--------
-**-------
--*-------
----------
)"

◆ parenthesis_right

std::string grid_font::parenthesis_right
Initial value:
= R"(
----------
*---------
**--------
-*--------
-**-------
-**-------
-**-------
-**-------
-**-------
-*--------
**--------
*---------
----------
)"

◆ percent

std::string grid_font::percent
Initial value:
= R"(
----------
-**--*-
-**-*--
---*---
--*-**-
-*--**-
)"

◆ period

std::string grid_font::period
Initial value:
= R"(
----------
----------
----------
----------
----------
----------
----------
----------
**--------
**--------
----------
----------
----------
)"

◆ plus

std::string grid_font::plus
Initial value:
= R"(
----------
----------
----------
---*------
---*------
---*------
*******---
---*------
---*------
---*------
----------
----------
----------
)"

◆ q_lower

std::string grid_font::q_lower
Initial value:
= R"(
----------
----------
----------
----------
-**-***---
**-***----
**--**----
**--**----
**-***----
-**-**----
----**----
----**----
--*****---
)"

◆ q_upper

std::string grid_font::q_upper
Initial value:
= R"(
----------
----------
-****-----
**--**----
**--**----
**--**----
**--**----
**--**----
**--**----
-****-----
--**-*----
--***-----
----------
)"

◆ question

std::string grid_font::question
Initial value:
= R"(
----------
-*****-
----*--
---*---
-------
---*---
)"

◆ r_lower

std::string grid_font::r_lower
Initial value:
= R"(
----------
----------
----------
----------
****-**---
--***-*---
--**--*---
--**------
--**------
*******---
----------
----------
----------
)"

◆ r_upper

std::string grid_font::r_upper
Initial value:
= R"(
----------
----------
******----
-**--**---
-**--**---
-**--**---
-*****----
-**-**----
-**--**---
****--**--
----------
----------
----------
)"

◆ s_lower

std::string grid_font::s_lower
Initial value:
= R"(
----------
----------
----------
----------
-*****----
**--**----
****------
--****----
**--**----
*****-----
----------
----------
----------
)"

◆ s_upper

std::string grid_font::s_upper
Initial value:
= R"(
----------
----------
-*****----
**--**----
**--------
-***------
--***-----
----**----
**--**----
*****-----
----------
----------
----------
)"

◆ seven

std::string grid_font::seven
Initial value:
= R"(
----------
******----
*---**----
---***----
---**-----
---**-----
---**-----
--***-----
--**------
--**------
----------
----------
----------
)"

◆ six

std::string grid_font::six
Initial value:
= R"(
----------
--****----
-**-------
**--------
**-**-----
***-**----
**--**----
**--**----
**--**----
-****-----
----------
----------
----------
)"

◆ t_lower

std::string grid_font::t_lower
Initial value:
= R"(
----------
----------
-**-------
-**-------
*****-----
-**-------
-**-------
-**-------
-**--*----
--***-----
----------
----------
----------
)"

◆ t_upper

std::string grid_font::t_upper
Initial value:
= R"(
----------
----------
******----
*-**-*----
*-**-*----
--**------
--**------
--**------
--**------
-****-----
----------
----------
----------
)"

◆ three

std::string grid_font::three
Initial value:
= R"(
----------
-****-----
*---**----
----**----
----**----
--***-----
----**----
----**----
*---**----
-****-----
----------
----------
----------
)"

◆ two

std::string grid_font::two
Initial value:
= R"(
----------
-****-----
**--**----
**--**----
----**----
---**-----
--**------
-**-------
**--------
******----
----------
----------
----------
)"

◆ u_lower

std::string grid_font::u_lower
Initial value:
= R"(
----------
----------
----------
----------
***-***---
-**--**---
-**--**---
-**--**---
-**--**---
--******--
----------
----------
----------
)"

◆ u_upper

std::string grid_font::u_upper
Initial value:
= R"(
----------
----------
***--***--
-**--**---
-**--**---
-**--**---
-**--**---
-**--**---
-**--**---
--****----
----------
----------
----------
)"

◆ v_lower

std::string grid_font::v_lower
Initial value:
= R"(
----------
----------
----------
----------
***-***---
-**-**----
-**-**----
-**-**----
--***-----
--***-----
----------
----------
----------
)"

◆ v_upper

std::string grid_font::v_upper
Initial value:
= R"(
----------
----------
****-****-
-**---**--
-**---**--
--**-**---
--**-**---
--**-**---
---***----
---***----
----------
----------
----------
)"

◆ w_lower

std::string grid_font::w_lower
Initial value:
= R"(
----------
----------
----------
----------
***---***-
-**-*-**--
-*******--
--**-**---
--**-**---
--*---*---
----------
----------
----------
)"

◆ w_upper

std::string grid_font::w_upper
Initial value:
= R"(
----------
----------
****-****-
-**---**--
-**-*-**--
-*******--
-***-***--
--**-**---
--**-**---
--**-**---
----------
----------
----------
)"

◆ x_lower

std::string grid_font::x_lower
Initial value:
= R"(
----------
----------
----------
----------
***--***--
-**--**---
--****----
--****----
-**--**---
***--***--
----------
----------
----------
)"

◆ x_upper

std::string grid_font::x_upper
Initial value:
= R"(
----------
----------
***-****--
-**--**---
--****----
---**-----
---**-----
--****----
-**--**---
****-***--
----------
----------
----------
)"

◆ y_lower

std::string grid_font::y_lower
Initial value:
= R"(
----------
----------
----------
----------
****-***--
-**--**---
-**--*----
--*-**----
--***-----
---**-----
--**------
--**------
*****-----
)"

◆ y_upper

std::string grid_font::y_upper
Initial value:
= R"(
----------
----------
***-****--
-**--**---
--*--*----
--****----
---**-----
---**-----
---**-----
*******---
----------
----------
----------
)"

◆ z_lower

std::string grid_font::z_lower
Initial value:
= R"(
----------
----------
----------
----------
******----
*--**-----
--**------
-**-------
**---*----
******----
----------
----------
----------
)"

◆ z_upper

std::string grid_font::z_upper
Initial value:
= R"(
----------
----------
******----
*---**----
*--**-----
--**------
--**------
-**--*----
**---*----
******----
----------
----------
----------
)"

◆ zero

std::string grid_font::zero
Initial value:
= R"(
----------
-****-----
**--**----
**--**----
**--**----
**--**----
**--**----
**--**----
**--**----
-****-----
----------
----------
----------
)"