|
Lines 819-824
void drawGlyphs(PlatformContextCairo& platformContext, const FillSource& fillSou
a/Source/WebCore/platform/graphics/cairo/CairoOperations.cpp_sec1
|
| 819 |
drawGlyphsToContext(cr, scaledFont, syntheticBoldOffset, glyphs); |
819 |
drawGlyphsToContext(cr, scaledFont, syntheticBoldOffset, glyphs); |
| 820 |
} |
820 |
} |
| 821 |
|
821 |
|
|
|
822 |
// Draw baseline for debugging |
| 823 |
cairo_save(cr); |
| 824 |
cairo_set_source_rgba(cr, 1, 0, 0, .4); |
| 825 |
cairo_set_line_width(cr, 1); |
| 826 |
cairo_move_to(cr, point.x(), point.y()); |
| 827 |
cairo_line_to(cr, xOffset, point.y()); |
| 828 |
cairo_stroke(cr); |
| 829 |
cairo_restore(cr); |
| 830 |
|
| 822 |
// Prevent running into a long computation within cairo. If the stroke width is |
831 |
// Prevent running into a long computation within cairo. If the stroke width is |
| 823 |
// twice the size of the width of the text we will not ask cairo to stroke |
832 |
// twice the size of the width of the text we will not ask cairo to stroke |
| 824 |
// the text as even one single stroke would cover the full wdth of the text. |
833 |
// the text as even one single stroke would cover the full wdth of the text. |