Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-26-2005, 10:59 PM   #1
LQ Newbie
Registered: Jan 2005
Posts: 7

Rep: Reputation: Disabled
Question Scaling individual fonts using fontconfig/Xft/GTK


On my Ubuntu system, there is a TrueType font called "Pothana2000" that is used to render Unicode text for the Telugu language. This font comes with the ttf-indic-fonts package which is also available on Debian systems.

My problem is that, in all GTK programs that use Xft (and therefore also use fontconfig), this Pothana2000 font appears much smaller than all other fonts at the same point-size. For example, see this screenshot and notice how the English words "Link" and "Mouse" (near the bottom of the picture) appear much bigger than the surrounding Telugu text.

To solve this problem, I have tried to force scaling of this font using a fontconfig configuration file, but was unsuccessful. Here is the configuration file I have tried (~/.fonts.conf):
<?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <!-- ~/.fonts.conf for per-user font configuration -->
         <match target="font">
                 <test name="family">
                 <edit name="scale" mode="assign_replace" binding="strong">
Is it possible to use something like fontconfig to specify that a particular font should have a larger default size than others? Maybe by specifying a larger DPI for that particular font? For example, if all fonts on my system are made for 75 DPI, can I configure fontconfig/Xft/GTK/whatever to render Pothana2000 text at a higher DPI?

I would really appreciate any thoughts or comments on this problem. It has been annoying me for two years now.


Last edited by gurulocu; 03-12-2012 at 02:40 PM.
Old 01-24-2012, 07:55 AM   #2
LQ Newbie
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Maybe you can try this code. I'm using a matrix to get a resized font, change the 1.1 to a value that fixes your font.

    <match target="font">
        <test name="family" qual="any">
	<edit name="matrix" mode="assign">


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xft fonts. Alderian Linux - General 1 12-27-2005 12:33 AM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
fontconfig and fonts bujecas Debian 0 07-27-2005 11:26 AM
no fonts found (fontconfig) a10392 Debian 2 02-08-2005 04:48 PM
xft.pc and/or fontconfig.pc rose_bud4201 Linux - Software 1 04-09-2003 01:19 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration