| 162 | } |
| 163 | |
| 164 | void 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 | |
| 174 | void ShieldRuleProtoToFontDecl(ShieldRuleProto const * shieldRule, dp::FontDecl & params) |
| 175 | { |
no test coverage detected