@@ -10,6 +10,13 @@ using namespace Vizzu::Styles;
1010#pragma clang diagnostic ignored "-Wc99-designator"
1111#endif
1212
13+ Font Chart::defaultFont{
14+ .fontFamily = ::Anim::String (" Roboto, sans-serif" ),
15+ .fontStyle = Gfx::Font::Style::normal,
16+ .fontWeight = Gfx::Font::Weight::Normal (),
17+ .fontSize = Gfx::Length (16 )
18+ };
19+
1320Chart Chart::def ()
1421{
1522 return {
@@ -28,7 +35,7 @@ Chart Chart::def()
2835 .fontFamily = ::Anim::String (" Roboto, sans-serif" ),
2936 .fontStyle = Gfx::Font::Style::normal,
3037 .fontWeight = Gfx::Font::Weight::Normal (),
31- .fontSize = 11
38+ .fontSize = Gfx::Length::Relative ( 1 )
3239 },
3340 .plot = {
3441 {
@@ -62,10 +69,10 @@ Chart Chart::def()
6269 .paddingLeft = Gfx::Length::Absolute (5 )
6370 },
6471 {
65- .fontFamily = ::Anim::String (" Roboto, sans-serif " ),
72+ .fontFamily = ::Anim::String (),
6673 .fontStyle = Gfx::Font::Style::normal,
6774 .fontWeight = Gfx::Font::Weight::Normal (),
68- .fontSize = 11
75+ .fontSize = Gfx::Length::Relative ( 0.6875 )
6976 },
7077 {
7178 .color = Param<Gfx::Color>(),
@@ -93,10 +100,10 @@ Chart Chart::def()
93100 .paddingLeft = Gfx::Length::Absolute (0 )
94101 },
95102 {
96- .fontFamily = ::Anim::String (" Roboto, sans-serif " ),
103+ .fontFamily = ::Anim::String (),
97104 .fontStyle = Gfx::Font::Style::normal,
98105 .fontWeight = Gfx::Font::Weight::Normal (),
99- .fontSize = 14
106+ .fontSize = Gfx::Length::Relative ( 0.875 )
100107 },
101108 {
102109 .color = Gfx::Color::Gray (0.6 ),
@@ -116,10 +123,10 @@ Chart Chart::def()
116123 .paddingLeft = Gfx::Length::Absolute (25 )
117124 },
118125 {
119- .fontFamily = ::Anim::String (" Roboto, sans-serif " ),
126+ .fontFamily = ::Anim::String (),
120127 .fontStyle = Gfx::Font::Style::normal,
121128 .fontWeight = Gfx::Font::Weight::Normal (),
122- .fontSize = 12
129+ .fontSize = Gfx::Length::Relative ( 0.75 )
123130 },
124131 {
125132 .color = Gfx::Color::RGB (0xababab ),
@@ -168,10 +175,10 @@ Chart Chart::def()
168175 .paddingLeft = Gfx::Length::Absolute (5 )
169176 },
170177 {
171- .fontFamily = ::Anim::String (" Roboto, sans-serif " ),
178+ .fontFamily = ::Anim::String (),
172179 .fontStyle = Gfx::Font::Style::normal,
173180 .fontWeight = Gfx::Font::Weight::Normal (),
174- .fontSize = 14
181+ .fontSize = Gfx::Length::Relative ( 0.875 )
175182 },
176183 {
177184 .color = Gfx::Color::Gray (0.77 ),
@@ -190,10 +197,10 @@ Chart Chart::def()
190197 .paddingLeft = Gfx::Length::Absolute (10 )
191198 },
192199 {
193- .fontFamily = ::Anim::String (" Roboto, sans-serif " ),
200+ .fontFamily = ::Anim::String (),
194201 .fontStyle = Gfx::Font::Style::normal,
195202 .fontWeight = Gfx::Font::Weight::Normal (),
196- .fontSize = 14
203+ .fontSize = Gfx::Length::Relative ( 0.875 )
197204 },
198205 {
199206 .color = Gfx::Color::Gray (0.45 ),
@@ -218,10 +225,10 @@ Chart Chart::def()
218225 .paddingLeft = Gfx::Length::Absolute (10 )
219226 },
220227 {
221- .fontFamily = ::Anim::String (" Roboto, sans-serif " ),
228+ .fontFamily = ::Anim::String (),
222229 .fontStyle = Gfx::Font::Style::normal,
223230 .fontWeight = Gfx::Font::Weight::Normal (),
224- .fontSize = 26
231+ .fontSize = Gfx::Length::Relative ( 1.625 )
225232 },
226233 {
227234 .color = Gfx::Color::RGB (0x494949 ),
0 commit comments