On 6/23/06, <b class="gmail_sendername">Paul Wise</b> &lt;<a href="mailto:pabs3@bonedaddy.net">pabs3@bonedaddy.net</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 2006-06-23 at 00:08 +0200, Mohammed Adnčne Trojette wrote:<br>&gt; one of the first things I wanted to know when I started packaging fonts<br>&gt; is how the hinting works in defoma. As I've adopted most of the font
<br>&gt; packages I have, I did change most of the hints files.<br><br>I used the utility in defoma to generate mine and then tweaked them<br>where they were obviously wrong.</blockquote><div><br>Unfortunately, the hints in defoma don't actually have any behaviour forced on them and there is no 'lint' utility for checking them.&nbsp; They are entirely a set of free-form key-value pairs that accompany the font through the defoma api and each application script does with them whatever it wants.
<br><br>There are a set of 'expected' hints in the defoma-doc 'developers' documentation, but realistically you will probably need to investigate specific application scripts that aren't doing what you want and read their 
README.Defoma and/or read the script source to see exactly what hints it is working with.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; Does someone know any good documentation/tutorial link about this or<br>&gt; could sum up what is necessary to survive.<br><br>Perhaps the defoma-hints manual page or the docs in the defoma-doc<br>package would help?
</blockquote><div><br>They are definately the best starting point.&nbsp; Feel free to ask here for further help, I have been trying to scan this list every now and then looking for defoma questions.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; To give a concrete example: in ttf-arabeyes, AlMohanad is the preferred<br>&gt; fonts for most applications. However, when I install the package, it<br>&gt; never gets used as default (in Firefox, e.g.). More than that, if I
<br>&gt; install ttf-paktype, it is one of this package's fonts that gets chosen<br>&gt; instead of the Arabeyes' one.<br><br>A while ago I had to read the source for defoma due to one of the<br>stylish fonts in ttf-khmeros being selected over the others, and I
<br>concluded that the fontconfig support in defoma did not tell fontconfig<br>about defoma priorities. The stylish font was being selected purely on<br>the basis of filename.<br></blockquote></div><br>fontconfig.defoma should be grouping the fonts by FontName and then picking the highest priority, since FontName is the primary selector fontconfig uses.
<br><br>If your font is installed in /usr/share/fonts, its quite likely that the font is available to fontconfig both directly from /usr/share/fonts/ and via the priority-based symlink in /var/lib/defoma/fontconfig.d/, which means conflict resolution is up to whatever algorithm fontconfig uses (first found?).&nbsp; Fixing this might be as simple as changing fontconfig's &lt;dir&gt; ordering to prefer the defoma symlinks.
<br><br>(.. presuming AlMohanad does in fact have a higher defoma priority than its competitors of course.&nbsp; If it doesn't and it really is the preferred font, please increase its defoma priority hint)<br><br>-- <br> - Gus
<br><br>(I didn't write defoma, I just thought the featureset was desirable enough that I didn't want to see the code die)<br>