[WebKit-devel] About fonts (... again ...?)

Dawit A. adawit at kde.org
Thu Aug 20 22:27:54 CEST 2009


Hi,

If the page uses a <pre> tag, then it is known issue in QtWebKit itself. Both 
the webkitpart and the Arora browser do not render pre-formatted text 
properly. Not sure where the problem lies, but it is on my todo list to look 
into this and open a bug report upstream if needed.

The font issue is also a known issue that needs to be investigated. There were 
a lot of hacks made to make the fonts and font sizes in the webkit part look 
as close to how they look in KHTML as possible. But the hack is not really a 
correct fix and will not workout well for some people. Anyhow, at some point 
this will have to looked into as well.

On Thursday 20 August 2009 12:48:52 Adrian von Bidder wrote:
> Heyho!
>
> (Webkit KPart r1010646 from my Debian packaging hg repository.)
>
> Viewing file:///usr/share/doc/python-sqlalchemy-doc/html/intro.html (sorry,
> I'm offline right now, but I guess the docs of sqlalchemy 0.5 are onlyine,
> too), I noticed that the "code" boxes (and in particular the block schema
> below; since spaces are just spaces, it's not as bad in regular code) do
> not use a monospace font, whereas when viewed in khtml a monospaced font is
> correctly used.  Is this known?  Can I give you details that would help
> you?
>
> The block schema in question is quite at the top of the file:
>
> +-----------------------------------------------------------+
>
> |             Object Relational Mapper (ORM)                |
>
> +-----------------------------------------------------------+
> +---------+ +------------------------------------+ +--------+
>
> |         | |       SQL Expression Language      | |        |
> |         |
> |         | +------------------------------------+ |        |
> |
> |         +-----------------------+ +--------------+        |
> |        Dialect/Execution        | |    Schema Management  |
>
> +---------------------------------+ +-----------------------+
> +----------------------+ +----------------------------------+
>
> |  Connection Pooling  | |              Types               |
>
> +----------------------+ +----------------------------------+
>
> The schema is inside <div class="highlight-python"><pre>; I found
> pre {
> 	background-color: #f0f0f0;
> 	border: solid 1px #ccc;
> 	padding:10px;
> 	margin: 5px 5px 5px 5px;
> 	overflow:auto;
> 	line-height:1.3em;
> }
> but I didn't find where the highlight-python stuff is defined.  Perhaps
> somebody else cal help me there?
>
> (And btw: why is there this quite noticeable default font size difference
> between khtml and webkit?  Shouldn't a default font setting of 10pt result
> in normal fonts being displayed as 10pt fonts, or at least (scaling in the
> css) as having the same size?
>
> cheers
> -- vbi


More information about the WebKit-devel mailing list