izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
svg::constants Namespace Reference

Enumerations

enum class  rrotation { cw , ccw }
 Radial rotation direction. More...
 

Functions

constexpr char comma (',')
 
constexpr char hyphen ('-')
 
constexpr char newline ('\n')
 
constexpr double pi (3.14159265358979323846)
 
constexpr char quote ('"')
 
constexpr char space (' ')
 Formatting character constants.
 
constexpr char tab ('\t')
 

Variables

typography::anchor a = typography::anchor::middle
 Useful typography constants.
 
constexpr area a2_096_h = { 2245, 1587 }
 Area Constants in pixel units. Pixel constants are using 96 PPI unless otherwise noted.
 
constexpr area a2_096_v = { 1587, 2245 }
 
constexpr area a2_mm_h = { 420, 594 }
 
constexpr area a4_096_h = { 1123, 794 }
 
constexpr area a4_096_v = { 794, 1123 }
 
constexpr area a4_mm_h = { 210, 297 }
 
constexpr area a5_096_h = { 794, 559 }
 
constexpr area a5_096_v = { 559, 794 }
 
constexpr area a5_mm_h = { 148, 210 }
 
constexpr area a6_096_h = { 559, 397 }
 
constexpr area a6_096_v = { 397, 559 }
 
constexpr area a6_mm_h = { 105, 148 }
 
typography::align al = typography::align::center
 
const typography apercu_typo = { aprcu, 12, b_style, a, al, b, w, p }
 
const typography apercumo_typo = { aprcumo, 12, b_style, a, al, b, w, p }
 
const char * aprcu = "Apercu"
 
const char * aprcumo = "Apercu Mono"
 
typography::baseline b = typography::baseline::none
 
const style b_style = { color::black, 1.0, color::white, 0.0, 0.5 }
 
const char * ccode = "Calling Code"
 
const typography ccode_typo = { ccode, 12, b_style, a, al, b, w, p }
 
const typography d_typo = shsans_typo
 
const char * hyperl = "Atkinson Hyperlegible"
 
const typography hyperl_typo = { hyperl, 12, b_style, a, al, b, w, p }
 
constexpr area instagram_4ks = { 2160, 2160 }
 
constexpr area instagram_s = { 1080, 1080 }
 
constexpr area instagram_v = { 1080, 1350 }
 
constexpr area letter_096_h = { 1056, 816 }
 
constexpr area letter_096_v = { 816, 1056 }
 
constexpr area letter_mm_h = { 216, 279 }
 Area Constants in millimeter units.
 
constexpr area letterb_096_h = { 1056, 816 }
 
constexpr area letterb_096_v = { 816, 1056 }
 Letter bleed (8.625 w x 11.25 h)
 
const char * mexcellent = "Mexcellent"
 
const typography mxcllnt_typo = { mexcellent, 12, b_style, a, al, b, w, p }
 
constexpr area no_area = { 0, 0 }
 
const style no_style = { color::none, 0.0, color::none, 0.0, 0 }
 Style constants.
 
typography::property p = typography::property::normal
 
constexpr area p17x22_096_v = { 1632, 2112 }
 
constexpr area p22x17_096_h = { 2112, 1632 }
 Engineering C, aka 22 x 17 letter quattro.
 
const style r_style = { color::red, 1.0, color::red, 0.0, 0.5 }
 
const char * shsans = "Source Han Sans CN"
 
const typography shsans_typo = { shsans, 12, b_style, a, al, b, w, p }
 
const char * smono = "Source Code Pro"
 
const typography smono_typo = { smono, 12, b_style, a, al, b, w, p }
 
constexpr area square17b_096_h = { 1680, 1656 }
 
constexpr area square17b_096_v = { 1656, 1680 }
 Square 17 bleed 2 x (8.625 w x 8.75 h) for above at 2x.
 
constexpr area square8_096 = { 768, 768 }
 Square 8 (8 w x 8 h)
 
constexpr area square8bis_096 = { 816, 816 }
 Square 8bis (8.5 w x 8.5 h)
 
constexpr area square8bisb_096_h = { 840, 826 }
 
constexpr area square8bisb_096_v = { 828, 840 }
 Square 8bis bleed (8.625 w x 8.75 h) (219 x 222 mm)
 
const char * ssans = "Source Sans Pro"
 
const typography ssans_typo = { ssans, 12, b_style, a, al, b, w, p }
 
const char * sserif = "Source Serif Pro"
 
const typography sserif_typo = { sserif, 12, b_style, a, al, b, w, p }
 
constexpr area v1080p_h = { 1920, 1080 }
 
constexpr area v1080p_v = { 1080, 1920 }
 
constexpr area v4k_h = { 3840, 2160 }
 
constexpr area v4k_v = { 2160, 3840 }
 
typography::weight w = typography::weight::normal
 
const style w_style = { color::white, 1.0, color::black, 0.0, 0.5 }
 
const style wcagdg_style = { color::wcag_dgray, 1.0, color::wcag_dgray, 0.0, 0.5 }
 
const style wcagg_style = { color::wcag_gray, 1.0, color::wcag_gray, 0.0, 0.5 }
 
const style wcaglg_style = { color::wcag_lgray, 1.0, color::wcag_lgray, 0.0, 0.5 }
 
const char * zslab = "Zilla Slab"
 
const typography zslab_typo = { zslab, 12, b_style, a, al, b, w, p }
 

Detailed Description

SVG Constants

Enumeration Type Documentation

◆ rrotation

enum class svg::constants::rrotation
strong

Radial rotation direction.

Enumerator
cw 

Clockwise.

ccw 

Counter-clockwise.

Definition at line 34 of file a60-svg-radial-base.h.

Function Documentation

◆ comma()

char svg::constants::comma ( ' ,
'  )
constexpr

◆ hyphen()

char svg::constants::hyphen ( '-' )
constexpr

◆ newline()

char svg::constants::newline ( '\n' )
constexpr

◆ pi()

double svg::constants::pi ( 3. 14159265358979323846)
constexpr

Numeric constants. pi = double(22)/double(7); pi = 3.14159265358979323846

◆ quote()

char svg::constants::quote ( '"' )
constexpr

◆ space()

char svg::constants::space ( ' ' )
constexpr

Formatting character constants.

◆ tab()

char svg::constants::tab ( '\t' )
constexpr

Variable Documentation

◆ a

Useful typography constants.

Definition at line 97 of file a60-svg-constants.h.

◆ a2_096_h

area svg::constants::a2_096_h = { 2245, 1587 }
constexpr

Area Constants in pixel units. Pixel constants are using 96 PPI unless otherwise noted.

Definition at line 39 of file a60-svg-constants.h.

◆ a2_096_v

area svg::constants::a2_096_v = { 1587, 2245 }
constexpr

Definition at line 44 of file a60-svg-constants.h.

◆ a2_mm_h

area svg::constants::a2_mm_h = { 420, 594 }
constexpr

Definition at line 32 of file a60-svg-constants.h.

◆ a4_096_h

area svg::constants::a4_096_h = { 1123, 794 }
constexpr

Definition at line 40 of file a60-svg-constants.h.

◆ a4_096_v

area svg::constants::a4_096_v = { 794, 1123 }
constexpr

Definition at line 45 of file a60-svg-constants.h.

◆ a4_mm_h

area svg::constants::a4_mm_h = { 210, 297 }
constexpr

Definition at line 33 of file a60-svg-constants.h.

◆ a5_096_h

area svg::constants::a5_096_h = { 794, 559 }
constexpr

Definition at line 41 of file a60-svg-constants.h.

◆ a5_096_v

area svg::constants::a5_096_v = { 559, 794 }
constexpr

Definition at line 46 of file a60-svg-constants.h.

◆ a5_mm_h

area svg::constants::a5_mm_h = { 148, 210 }
constexpr

Definition at line 34 of file a60-svg-constants.h.

◆ a6_096_h

area svg::constants::a6_096_h = { 559, 397 }
constexpr

Definition at line 42 of file a60-svg-constants.h.

◆ a6_096_v

area svg::constants::a6_096_v = { 397, 559 }
constexpr

Definition at line 47 of file a60-svg-constants.h.

◆ a6_mm_h

area svg::constants::a6_mm_h = { 105, 148 }
constexpr

Definition at line 35 of file a60-svg-constants.h.

◆ al

Definition at line 98 of file a60-svg-constants.h.

◆ apercu_typo

const typography svg::constants::apercu_typo = { aprcu, 12, b_style, a, al, b, w, p }

Definition at line 118 of file a60-svg-constants.h.

◆ apercumo_typo

const typography svg::constants::apercumo_typo = { aprcumo, 12, b_style, a, al, b, w, p }

Definition at line 119 of file a60-svg-constants.h.

◆ aprcu

const char* svg::constants::aprcu = "Apercu"

Definition at line 107 of file a60-svg-constants.h.

◆ aprcumo

const char* svg::constants::aprcumo = "Apercu Mono"

Definition at line 108 of file a60-svg-constants.h.

◆ b

Definition at line 101 of file a60-svg-constants.h.

◆ b_style

const style svg::constants::b_style = { color::black, 1.0, color::white, 0.0, 0.5 }

Definition at line 87 of file a60-svg-constants.h.

◆ ccode

const char* svg::constants::ccode = "Calling Code"

Definition at line 109 of file a60-svg-constants.h.

◆ ccode_typo

const typography svg::constants::ccode_typo = { ccode, 12, b_style, a, al, b, w, p }

Definition at line 120 of file a60-svg-constants.h.

◆ d_typo

const typography svg::constants::d_typo = shsans_typo

Default typography.

NB: Using a global locale. So, filenames are in multiple languages, not just en_US.

Make sure that the font with the largest support for random characters is used, ie some variant of Source Sans, Source Han Sans XX, etc. Otherwise, blank spaces in rendered output are likely.

Definition at line 136 of file a60-svg-constants.h.

◆ hyperl

const char* svg::constants::hyperl = "Atkinson Hyperlegible"

Definition at line 112 of file a60-svg-constants.h.

◆ hyperl_typo

const typography svg::constants::hyperl_typo = { hyperl, 12, b_style, a, al, b, w, p }

Definition at line 123 of file a60-svg-constants.h.

◆ instagram_4ks

area svg::constants::instagram_4ks = { 2160, 2160 }
constexpr

Definition at line 76 of file a60-svg-constants.h.

◆ instagram_s

area svg::constants::instagram_s = { 1080, 1080 }
constexpr

Definition at line 75 of file a60-svg-constants.h.

◆ instagram_v

area svg::constants::instagram_v = { 1080, 1350 }
constexpr

Definition at line 74 of file a60-svg-constants.h.

◆ letter_096_h

area svg::constants::letter_096_h = { 1056, 816 }
constexpr

Definition at line 50 of file a60-svg-constants.h.

◆ letter_096_v

area svg::constants::letter_096_v = { 816, 1056 }
constexpr

Definition at line 49 of file a60-svg-constants.h.

◆ letter_mm_h

area svg::constants::letter_mm_h = { 216, 279 }
constexpr

Area Constants in millimeter units.

Definition at line 30 of file a60-svg-constants.h.

◆ letterb_096_h

area svg::constants::letterb_096_h = { 1056, 816 }
constexpr

Definition at line 54 of file a60-svg-constants.h.

◆ letterb_096_v

area svg::constants::letterb_096_v = { 816, 1056 }
constexpr

Letter bleed (8.625 w x 11.25 h)

Definition at line 53 of file a60-svg-constants.h.

◆ mexcellent

const char* svg::constants::mexcellent = "Mexcellent"

Definition at line 111 of file a60-svg-constants.h.

◆ mxcllnt_typo

const typography svg::constants::mxcllnt_typo = { mexcellent, 12, b_style, a, al, b, w, p }

Definition at line 122 of file a60-svg-constants.h.

◆ no_area

area svg::constants::no_area = { 0, 0 }
constexpr

Area constants use [h, v] suffix as per

  • h == horizontal aka landscape
  • v == vertical aka portrait

Definition at line 27 of file a60-svg-constants.h.

◆ no_style

const style svg::constants::no_style = { color::none, 0.0, color::none, 0.0, 0 }

Style constants.

Definition at line 86 of file a60-svg-constants.h.

◆ p

Definition at line 100 of file a60-svg-constants.h.

◆ p17x22_096_v

area svg::constants::p17x22_096_v = { 1632, 2112 }
constexpr

Definition at line 72 of file a60-svg-constants.h.

◆ p22x17_096_h

area svg::constants::p22x17_096_h = { 2112, 1632 }
constexpr

Engineering C, aka 22 x 17 letter quattro.

Definition at line 71 of file a60-svg-constants.h.

◆ r_style

const style svg::constants::r_style = { color::red, 1.0, color::red, 0.0, 0.5 }

Definition at line 90 of file a60-svg-constants.h.

◆ shsans

const char* svg::constants::shsans = "Source Han Sans CN"

Definition at line 106 of file a60-svg-constants.h.

◆ shsans_typo

const typography svg::constants::shsans_typo = { shsans, 12, b_style, a, al, b, w, p }

Definition at line 117 of file a60-svg-constants.h.

◆ smono

const char* svg::constants::smono = "Source Code Pro"

Definition at line 105 of file a60-svg-constants.h.

◆ smono_typo

const typography svg::constants::smono_typo = { smono, 12, b_style, a, al, b, w, p }

Definition at line 114 of file a60-svg-constants.h.

◆ square17b_096_h

area svg::constants::square17b_096_h = { 1680, 1656 }
constexpr

Definition at line 68 of file a60-svg-constants.h.

◆ square17b_096_v

area svg::constants::square17b_096_v = { 1656, 1680 }
constexpr

Square 17 bleed 2 x (8.625 w x 8.75 h) for above at 2x.

Definition at line 67 of file a60-svg-constants.h.

◆ square8_096

area svg::constants::square8_096 = { 768, 768 }
constexpr

Square 8 (8 w x 8 h)

Definition at line 57 of file a60-svg-constants.h.

◆ square8bis_096

area svg::constants::square8bis_096 = { 816, 816 }
constexpr

Square 8bis (8.5 w x 8.5 h)

Definition at line 60 of file a60-svg-constants.h.

◆ square8bisb_096_h

area svg::constants::square8bisb_096_h = { 840, 826 }
constexpr

Definition at line 64 of file a60-svg-constants.h.

◆ square8bisb_096_v

area svg::constants::square8bisb_096_v = { 828, 840 }
constexpr

Square 8bis bleed (8.625 w x 8.75 h) (219 x 222 mm)

Definition at line 63 of file a60-svg-constants.h.

◆ ssans

const char* svg::constants::ssans = "Source Sans Pro"

Definition at line 104 of file a60-svg-constants.h.

◆ ssans_typo

const typography svg::constants::ssans_typo = { ssans, 12, b_style, a, al, b, w, p }

Definition at line 116 of file a60-svg-constants.h.

◆ sserif

const char* svg::constants::sserif = "Source Serif Pro"

Definition at line 103 of file a60-svg-constants.h.

◆ sserif_typo

const typography svg::constants::sserif_typo = { sserif, 12, b_style, a, al, b, w, p }

Definition at line 115 of file a60-svg-constants.h.

◆ v1080p_h

area svg::constants::v1080p_h = { 1920, 1080 }
constexpr

Definition at line 78 of file a60-svg-constants.h.

◆ v1080p_v

area svg::constants::v1080p_v = { 1080, 1920 }
constexpr

Definition at line 79 of file a60-svg-constants.h.

◆ v4k_h

area svg::constants::v4k_h = { 3840, 2160 }
constexpr

Definition at line 81 of file a60-svg-constants.h.

◆ v4k_v

area svg::constants::v4k_v = { 2160, 3840 }
constexpr

Definition at line 82 of file a60-svg-constants.h.

◆ w

Definition at line 99 of file a60-svg-constants.h.

◆ w_style

const style svg::constants::w_style = { color::white, 1.0, color::black, 0.0, 0.5 }

Definition at line 88 of file a60-svg-constants.h.

◆ wcagdg_style

const style svg::constants::wcagdg_style = { color::wcag_dgray, 1.0, color::wcag_dgray, 0.0, 0.5 }

Definition at line 93 of file a60-svg-constants.h.

◆ wcagg_style

const style svg::constants::wcagg_style = { color::wcag_gray, 1.0, color::wcag_gray, 0.0, 0.5 }

Definition at line 92 of file a60-svg-constants.h.

◆ wcaglg_style

const style svg::constants::wcaglg_style = { color::wcag_lgray, 1.0, color::wcag_lgray, 0.0, 0.5 }

Definition at line 91 of file a60-svg-constants.h.

◆ zslab

const char* svg::constants::zslab = "Zilla Slab"

Definition at line 110 of file a60-svg-constants.h.

◆ zslab_typo

const typography svg::constants::zslab_typo = { zslab, 12, b_style, a, al, b, w, p }

Definition at line 121 of file a60-svg-constants.h.