Hi,

I've also been working on this "problem" for some time and if I'm not wrong
you should look at
Font::drawText() in WebCore/platform/graphics/Font.cpp.

In my case there are two possible paths (because I have FONT_FAST_PATH
defined):
drawSimpleText or drawComplexText (
WebCore/platform/graphics/win/FontWin.cpp.). In both of them buffer of
glyphs to display is prepared.
In case when there is no glyph to dispaly both methods just return and
nothing is displayed.

I don't exactly know in which moment not existing glyph is replaced by
rectangle.
I'm going to assign rectangle glyph by myself in that case but first I have
to check how Chrome resolves this problem.
I thought that WebKit does it as its default behaviour.

If you have other conlusions please let me know.

Regards
Seweryn


2010/1/20 hap 497 <[email protected]>

> Hi,
>
> Can you please point me to the code of how each character of text in a
> web page is drawn on a screen?
> I would like to look at the logic of Webkit about how it determine to
> draw a Rectangle on the screen instead of the glyph of a character on
> the screen.
>
> Thank you for any pointer.
> _______________________________________________
> webkit-help mailing list
> [email protected]
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to