[prev in list] [next in list] [prev in thread] [next in thread]
List: konq-e
Subject: Re: Qt's richtext <H1> font
From: Simon Hausmann <hausmann () kde ! org>
Date: 2001-03-07 15:09:41
[Download RAW message or body]
Maybe Lars can help with this :-) CC'ing to him
Any idea how one could make khtml use this font (smoothtimes) ?
(shouldn't it be possible to use it using user-defined stylesheet, specifying
smoothtimes for <h1> or something?)
Bye,
Simon
On Tue, Mar 06, 2001 at 08:46:06AM -0800, David Erickson wrote:
> Let me answer my own question for the benefit of all:
>
> In the precompiled fonts (.qpf files), there is only one *very* large font:
> smoothtimes, bold, 44 point. Anything else will be a 24 point font at most.
>
> Also, if you try to use this font in an html page,
> kdesrc/khtml/css.cssstyleselector.cpp contains code to verify fonts against
> the "available fonts" which come from the charsets data. smoothtimes wasn't
> registered, so it was defaulting to helvetica, which doesn't contain a 44pt
> font.
>
> So, for now, I've commented out the problematic cssstyleselector code until
> I can figure out how to properly register smoothtimes.
>
> - David
>
> -----Original Message-----
> From: David Erickson [mailto:Derickson@corpbig.com]
> Sent: Friday, March 02, 2001 11:35 AM
> To: 'konq-e@master.kde.org'
> Subject: Qt's richtext <H1> font
>
>
> When I run the launcher demo (included with Qt), I see a great, large font.
> It's produced by putting <H1> tags into the QLabel caption and letting Qt's
> richtext capabilities render the font. I would guess it's a 35 point, serif
> font. Real nice.
>
> KHTML isn't using Qt's richtext. Rather, it parses all html tags, like <H1>,
> sets the font itself using QFont, and draws the plain text. Just as it
> should.
>
> The problem is that I've found that using QFont, the biggest font I can get
> is 24 point with smoothtimes. (I've had trouble getting any fonts sizes with
> helvetica. Everything appears small.)
>
> How can I get that big, beautiful font using QFont? Once I figure it out, I
> could get it in khtml with a css tag, or by tweaking the standard font
> sizes. But right now I can't get it in a simple Qt app.
>
> Any insight would be appreciated.
>
> - David
>
> PS. I'm also finding the serif/sans-serif varies as I render all fonts. For
> instance, 24 point is by default sans-serif, but 25 point is serif.
> _______________________________________________
> Konq-e mailing list
> Konq-e@master.kde.org
> http://master.kde.org/mailman/listinfo/konq-e
> _______________________________________________
> Konq-e mailing list
> Konq-e@master.kde.org
> http://master.kde.org/mailman/listinfo/konq-e
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic