MCPcopy Create free account
hub / github.com/comaps/comaps / CaptionDefProtoToFontDecl

Function CaptionDefProtoToFontDecl

libs/drape_frontend/apply_feature_functors.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void CaptionDefProtoToFontDecl(CaptionDefProto const * capRule, dp::FontDecl & params)
165{
166 double const vs = df::VisualParams::Instance().GetVisualScale();
167 params.m_color = ToDrapeColor(capRule->color());
168 params.m_size = static_cast<float>(std::max(kMinVisibleFontSize, capRule->height() * vs));
169
170 if (capRule->stroke_color() != 0)
171 params.m_outlineColor = ToDrapeColor(capRule->stroke_color());
172}
173
174void ShieldRuleProtoToFontDecl(ShieldRuleProto const * shieldRule, dp::FontDecl & params)
175{

Callers 2

ExtractCaptionParamsMethod · 0.85

Calls 5

ToDrapeColorFunction · 0.85
GetVisualScaleMethod · 0.80
stroke_colorMethod · 0.60
colorMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected