| 766 | } |
| 767 | |
| 768 | void TextRenderable::renderCommon(QPainter& painter, const RenderConfig& config) const |
| 769 | { |
| 770 | bool disable_antialiasing = config.options.testFlag(RenderConfig::Screen) && !(Settings::getInstance().getSettingCached(Settings::MapDisplay_TextAntialiasing).toBool()); |
| 771 | if (disable_antialiasing) |
| 772 | { |
| 773 | painter.setRenderHint(QPainter::Antialiasing, false); |
| 774 | painter.setRenderHint(QPainter::TextAntialiasing, false); |
| 775 | } |
| 776 | |
| 777 | painter.translate(anchor_x, anchor_y); |
| 778 | if (rotation != 0.0) |
| 779 | painter.rotate(rotation); |
| 780 | painter.scale(scale_factor, scale_factor); |
| 781 | painter.drawPath(path); |
| 782 | } |
| 783 | |
| 784 | |
| 785 | |