You are not logged in.

#1 2012-01-21 09:01:56

Markus00000
Member
Registered: 2011-03-27
Posts: 318

[SOLVED] Font issue: Differing character heights in URW Palladio L

Screenshot: http://imgur.com/x6kIE

URW Palladio L has differing heights for its characters at the same font size. Judging by screenshots of this font on the web, this is not how the font looks elsewhere.

This occurs at least in Firefox and in LibreOffice.

Does this happen to everybody on Arch? Any ideas what the problem is?

Last edited by Markus00000 (2012-01-21 09:43:36)

Offline

#2 2012-01-21 09:16:03

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

It renders well for me.  Perhaps you're not using the correct hinting/autohint values?  Also if you use any non-standard font packages such the infinality stuff, you should mention it.

Last edited by lolilolicon (2012-01-21 09:16:38)


This silver ladybug at line 28...

Offline

#3 2012-01-21 09:30:00

Markus00000
Member
Registered: 2011-03-27
Posts: 318

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

Thanks for your answer. I have not consciously installed anything except ttf-dejavu and ttf-liberation.

$ pacman -Qs ttf
local/sdl_ttf 2.0.11-1
local/ttf-dejavu 2.33-1
local/ttf-freefont 20100919-1
local/ttf-liberation 1.07.1-1

What are the correct (or your) hinting/autohint values? I don't think I have ever modified any font settings except in .Xresources. Also I don't have a ~/.fonts.conf.

Edit: Well, I just put everything that sounded helpful from the wiki (Font configuration) into a ~/.fonts.conf and URW Palladio L looks normal now. Thank you very much for the tip!

Last edited by Markus00000 (2012-01-21 09:35:19)

Offline

#4 2012-01-21 10:16:41

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

instead you could install infinality patches from AUR.infinality looks better than wiki Font configuration settings in my notebook.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#5 2012-01-21 14:03:34

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

I assume the fix was:

        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>

Yes?

Offline

#6 2012-01-21 14:06:09

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

brebs wrote:

I assume the fix was:

        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>

Yes?

No.  I don't have this rule and it renders well for me; I also don't see any bitmap font in that screenshot...


This silver ladybug at line 28...

Offline

#7 2012-01-21 15:25:31

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

I was asking the person for whom it was broken... The screenshot is of the *broken* font rendering.

Scalable fonts can have embedded bitmaps.

Offline

#8 2012-01-21 15:36:00

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

I get what you say.
Since I don't see any bitmap font in the screenshot, I don't see how disabling embedded bitmap would fix it.


This silver ladybug at line 28...

Offline

#9 2012-01-21 15:57:49

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

True.

Well, it's still bizarre, and it would be interesting to narrow down the cure from "everything that sounded helpful" wink

Offline

#10 2012-01-23 12:31:56

Markus00000
Member
Registered: 2011-03-27
Posts: 318

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

Sorry for the late reply, my Internet provider decided that I didn't need Internet over the weekend.

1) The "embeddedbitmap" setting does not seem to change anything.

2) It looks ugly with the following settings:

<fontconfig>
	<match target="font">
		<edit name="antialias" mode="assign">
			<bool>true</bool>
		</edit>
	</match>
	<match target="font">
		<edit name="hinting" mode="assign">
			<bool>true</bool>
		</edit>
	</match>
	<match target="font">
		<edit name="hintstyle" mode="assign">
			<const>hintfull</const>
		</edit>
	</match>
	<match target="font">
		<edit name="rgba" mode="assign">
			<const>rgb</const>
		</edit>
	</match>
	<match target="font">
		<edit mode="assign" name="lcdfilter">
			<const>lcddefault</const>
		</edit>
	</match>
</fontconfig>

Note: "autohint" is missing here.

3) It looks fixed with the following settings:

<fontconfig>
	<match target="font">
		<edit name="autohint" mode="assign">
			<bool>true</bool>
		</edit>
	</match>
</fontconfig>

Are there any reasons why one shouldn't combine the settings from 2) and 3)?

Edit: One thing I notice is that headlines like those on the forum index page become very bold when "autohint" is on. If one doesn't like that, disabling "autohint" and replacing ugly fonts could be a solution.

Last edited by Markus00000 (2012-01-23 13:03:38)

Offline

#11 2012-01-23 13:26:23

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

Are there any reasons why one shouldn't combine the settings

Nope. It's the only way to get the best out of each font. Infinality has lotsa fontconfig rules.

Offline

#12 2012-01-23 13:33:19

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

infinality from AUR gives you all the options.Its much easier,than the mangling with fonts.conf

Last edited by hadrons123 (2012-01-23 13:34:10)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#13 2012-01-23 13:35:50

Markus00000
Member
Registered: 2011-03-27
Posts: 318

Re: [SOLVED] Font issue: Differing character heights in URW Palladio L

I think I will settle with "autohint" enabled for specific fonts only (like URW Palladio L). This way I don't get overly bold bold fonts and don't need to install any packages.

	<match target="pattern" name="family">
		<test name="family" qual="any">
			<string>URW Palladio L</string>
		</test>
		<edit name="autohint" mode="assign">
			<bool>true</bool>
		</edit>
	</match>

Thanks for all your help!

Offline

Board footer

Powered by FluxBB