のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

GC::drawText

    378 void GraphicsContext::drawText(const Font& font, const TextRun& run, const FloatPoint& point, int from, int to)
    379 {
    380     if (paintingDisabled())
    381         return;
    382 
    383     font.drawText(this, run, point, from, to);
    384 }
    127 void Font::drawText(GraphicsContext* context, const TextRun& run, const FloatPoint& point, int from, int to) const
    128 {
    129     // Don't draw anything while we are using custom fonts that are in the process of loading.
    130     if (loadingCustomFonts())
    131         return;
    132 
    133     to = (to == -1 ? run.length() : to);
    134 
    135 #if ENABLE(SVG_FONTS)
    136     if (primaryFont()->isSVGFont()) {
    137         drawTextUsingSVGFont(context, run, point, from, to);
    138         return;
    139     }
    140 #endif
    141 
    142     if (codePath(run) != Complex)
    143         return drawSimpleText(context, run, point, from, to);
    144 
    145     return drawComplexText(context, run, point, from, to);
    146 }