| 172 | } |
| 173 | |
| 174 | void ShieldRuleProtoToFontDecl(ShieldRuleProto const * shieldRule, dp::FontDecl & params) |
| 175 | { |
| 176 | double const vs = df::VisualParams::Instance().GetVisualScale(); |
| 177 | params.m_color = ToDrapeColor(shieldRule->text_color()); |
| 178 | params.m_size = static_cast<float>(std::max(kMinVisibleFontSize, shieldRule->height() * vs)); |
| 179 | if (shieldRule->text_stroke_color() != 0) |
| 180 | params.m_outlineColor = ToDrapeColor(shieldRule->text_stroke_color()); |
| 181 | } |
| 182 | |
| 183 | dp::Anchor GetAnchor(int offsetX, int offsetY) |
| 184 | { |
no test coverage detected