Bug 120061 - [site-issue] Font size/scaling displayed incorrectly
Summary: [site-issue] Font size/scaling displayed incorrectly
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-13 20:17 UTC by Gogs
Modified: 2007-01-02 15:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
First Example (164.59 KB, image/png)
2006-02-06 20:21 UTC, Gogs
Details
Example 2 (185.58 KB, image/png)
2006-02-06 20:24 UTC, Gogs
Details
Example 3 (50.27 KB, image/png)
2006-02-07 19:50 UTC, Gogs
Details
Example 4 (52.05 KB, image/png)
2006-02-07 19:51 UTC, Gogs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gogs 2006-01-13 20:17:45 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.4 
OS:                Linux

On http://www.limov.com/fonts/sizes.lml?u=x&f=a&b=n, the smaller fonts are not scaled correctly. Using px, there seems to be no difference between 7px 8px 9px and 10px. Using em, 0.5, 0.6, 0.7, 0.8, 0.9, are all the same...
Comment 1 Halla Rempt 2006-02-01 11:37:19 UTC
Set the minimum font size of konqueror to something less than 10 to get smaller fonts than 10 points.
Comment 2 Gogs 2006-02-01 11:52:58 UTC
My minimum font size is set to 8 (which if I can count correctly is less than 10!!!)
Comment 3 Gogs 2006-02-01 11:53:38 UTC
Reopening this, because I don't think that there was a valid reason for closing it...
Comment 4 James Ots 2006-02-01 17:12:43 UTC
The page you refer to is using pixels for the font size, not points. Take a look at http://www.limov.com/fonts/sizes.lml?u=t&f=a&b=n and you'll find that all the line with sizes 8pt and less are the same, as per your settings.
Comment 5 Gogs 2006-02-02 21:34:34 UTC
Ok, there seems to be some misunderstanding here. I can see now that px and pt are different..

BUT I'd like to ask this. When I set minimum font size in konq, I assume that that is referring to pt size. And in Control Centre, where one sets font size, I assume that that is ALSO referring to point size....

So, if in Control Centre I set my font to Tahoma 7, and I set my minimum font size to 7 in konq, would it not be reasonable to assume that the font size that I have in my menus would be the minimum size that I would see in any web page that was rendered with a minimum font size of 7?

And that is DEFINITELY not what I'm seeing. If I'm making any wrong assumptions here then please let me know, but for the moment I believe that there is STILL something wrong with the way konqueror renders/interprets font sizes....
Comment 6 Thiago Macieira 2006-02-03 18:22:45 UTC
Looks just fine here. 

The first font to show a difference in size is the 13px one. My font settings say the minimum is 9pt. My monitor is running at 98 dpi.

So, 13 px / 98 dpi = 0.13 inches = 9.55 pt
(1 inch = 1 pica = 72 points)
Comment 7 Gogs 2006-02-04 20:28:47 UTC
Thanks for replying Thiago, but I don't think you understand what I'm saying. In Kde Control Centre, I have my default font set as Tahoma 7. This means that all menus, etc are displayed using the Tahoma font, which is set to a size of 7. So, if I have in Konqueror a minimum font size of 9, then surely I shouldn't be able to view any web page where the font sizes are smaller than the fonts that are being displayed in my menus etc..

But this isn't what I'm seeing. It seems to me that a font size of 7 set in Control Centre is different than a font size of 7 displayed in a web page.

Is this so? And is this correct behaviour??
Comment 8 James Ots 2006-02-06 20:07:05 UTC
On my computer it looks fine - I set my menu font to Verdana 7 and a minimum web font size of 9, and there are no lines in the test page smaller than the menu text.

Can you attach a screenshot of what you are seeing?
Comment 9 Gogs 2006-02-06 20:21:43 UTC
Created attachment 14580 [details]
First Example
Comment 10 Gogs 2006-02-06 20:24:44 UTC
Created attachment 14581 [details]
Example 2

Apologies..I should have said that the minimum font size was 8, not 9. Anyway,
as I think you can see clearly from this second example, I have my minimum font
size set to 8, my menu fonts etc set to 7, and clearly in the KDE homepage
those fonts on the left are smaller than the fonts in the menus etc...
Comment 11 Tommi Tervo 2006-02-06 20:29:08 UTC
gogs: what does command "xdpyinfo |grep resolution" print?
Comment 12 Gogs 2006-02-06 20:34:36 UTC
resolution:    98x98 dots per inch
Comment 13 James Ots 2006-02-07 00:05:04 UTC
I can't seem to reproduce that on my machine. So just some more thoughts: Does text in KWord come out the same size as text in konqueror, or the same size as the menus?

At 7pt, Arial should be a little smaller than Tahoma, so it looks like your konqueror's 8pt text is actually 7pt. I can't see why it would be scaling differently from the menus. But then again, I don't know that much of the internals of KDE yet.
Comment 14 Gogs 2006-02-07 19:50:07 UTC
Created attachment 14600 [details]
Example 3

Example 3
Comment 15 Gogs 2006-02-07 19:51:47 UTC
Created attachment 14601 [details]
Example 4

That's the very strange thing. As you can see from example 3, the fonts aren't
all the same size compared to each other - but they are almost the same size as
the menu fonts.

However, when KWord is maximised it looks completely different. This is getting
stranger and stranger...
Comment 16 James Ots 2006-02-09 13:47:02 UTC
Different fonts will be different sizes when using the same point size - it just depends on how the font was designed. The reason the font size is changing when you maximise KWord is because it is showing at 168% (see bottom right of the window.)

It's still a mystery to me why 8pt Arial in your web browser is so small though.
Comment 17 Philip Rodrigues 2006-09-08 00:47:13 UTC
In control center, set the menu font to the same as the konqueror web browsing font. Do the fonts appear the same?
Comment 18 Philip Rodrigues 2007-01-02 15:22:07 UTC
Feedback timeout, and no one can reproduce the problem, so resolving