Re: Using defoma for building package ?
Josselin Mouette wrote: Is there a way to use fc-match to locate a Type1 font (pfb) and also its associated font metrics (the afm file)? I may be wrong, but as fontconfig was designed for Xft which doesn't make use of the .afm file but only uses the .pfb directly, I think fontconfig cannot locate the .afm. Ok, do you know of some other way to do the above? Marcus -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Using defoma for building package ?
Hi, if your program uses fontconfig to find the fonts, then you don't need defoma. Otherwise, install defoma-doc and have a look at /usr/share/doc/defoma-doc/defoma-script.html/ch2.html about how to get a list of the installed fonts and how to write your configuration file. In both cases you should depend on the font's package. Hope it helps, Ionut On Fri, 2006-04-28 at 11:06 +0200, artefact wrote: Hi, I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... Note: I RTFM :-) and had a look at several others game package (penguin-racer, gltron and some others) and they all embbed the font files into the -data package. Jean -- / Si la logique est l'hygiène du\ | mathématicien, ce n'est pas elle qui | | lui fournit sa nourriture ; le pain| | quotidien dont il vit, ce sont les | \ grands problèmes. -+- André Weil -+- / \ ^__^ \ (OO)\___ (__)\ )\/\ ||w | || || -- *** * Ionuţ Georgescu * Max-Planck-Institut für Physik komplexer Systeme * Noethnitzer Str. 38, D-01187 Dresden * Phone: +49 (351) 871-2209 * Fax: +49 (351) 871-1999 signature.asc Description: This is a digitally signed message part
Re: Using defoma for building package ?
Le 30.04.2006 22:43, Marcus Better a écrit : Josselin Mouette wrote: How about using fontconfig ? Even without using the API you can use it to look for a font: $ fc-match --verbose sans | awk '$1==file:' file: /var/lib/defoma/fontconfig.d/D/DejaVu-Sans.ttf(s) Is there a way to use fc-match to locate a Type1 font (pfb) and also its associated font metrics (the afm file)? Marcus Thank you, I will have a look at fontconfig, I think this is the right way ! Regards, Jean -- _ / Il y a malgré tout un avantage à \ | tomber en panne sèche. C'est que c'est | | moins lourd à pousser que si le| | réservoir est plein. -+- Philippe | \ Geluck, Le chat -+- / - \ ^__^ \ (..)\___ (__)\ )\/\ ||w | || || -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Using defoma for building package ?
Le dimanche 30 avril 2006 à 22:43 +0200, Marcus Better a écrit : Is there a way to use fc-match to locate a Type1 font (pfb) and also its associated font metrics (the afm file)? I may be wrong, but as fontconfig was designed for Xft which doesn't make use of the .afm file but only uses the .pfb directly, I think fontconfig cannot locate the .afm. Regards, -- .''`. Josselin Mouette/\./\ : :' : [EMAIL PROTECTED] `. `'[EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom
Re: Using defoma for building package ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josselin Mouette wrote: How about using fontconfig ? Even without using the API you can use it to look for a font: $ fc-match --verbose sans | awk '$1==file:' file: /var/lib/defoma/fontconfig.d/D/DejaVu-Sans.ttf(s) Is there a way to use fc-match to locate a Type1 font (pfb) and also its associated font metrics (the afm file)? Marcus -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEVSFhXjXn6TzcAQkRAt1DAKCVI2yEibbdFoNp/pzK7YkbC1ApZACfZtrC uRwegAoBJyh80IdKeosTrHk= =CIAw -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Using defoma for building package ?
Hi, I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... Note: I RTFM :-) and had a look at several others game package (penguin-racer, gltron and some others) and they all embbed the font files into the -data package. Jean -- / Si la logique est l'hygiène du\ | mathématicien, ce n'est pas elle qui | | lui fournit sa nourriture ; le pain| | quotidien dont il vit, ce sont les | \ grands problèmes. -+- André Weil -+- / \ ^__^ \ (OO)\___ (__)\ )\/\ ||w | || || -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Using defoma for building package ?
Le Ven 28 Avril 2006 11:06, artefact a écrit : Hi, I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... Note: I RTFM :-) and had a look at several others game package (penguin-racer, gltron and some others) and they all embbed the font files into the -data package. I think you can get safely it with: dirname $(grep '^begin ' /etc/defoma/hints/ttf-dejavu.hints | \ head -1 | cut -d' ' -f 2) but it may exist some more conventionnal way, I'm far from knowing defoma ;) -- ·O· Pierre Habouzit ··O[EMAIL PROTECTED] OOOhttp://www.madism.org pgpf7MOOfIoQ9.pgp Description: PGP signature
Re: Using defoma for building package ?
Le 28.04.2006 11:42, Pierre Habouzit a écrit : Le Ven 28 Avril 2006 11:06, artefact a écrit : Hi, I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... Note: I RTFM :-) and had a look at several others game package (penguin-racer, gltron and some others) and they all embbed the font files into the -data package. I think you can get safely it with: dirname $(grep '^begin ' /etc/defoma/hints/ttf-dejavu.hints | \ head -1 | cut -d' ' -f 2) but it may exist some more conventionnal way, I'm far from knowing defoma ;) Thank you, maybe it is not the best method, but it works ;-) But, as I can not satisfy with simple things, I would want defoma (or something else) to give me the name of an alternate font (looking quite like to), in case of the DejaVuSans font does not exist for my locale. The trouble is this game has been translated into Russian and could be in Arabic too. What mechanisms exists to get the name of related fonts in non latin alphabet ? Regards, Jean -- / (A Darwin qui lui expliquait que \ | l'homme descendait du singe) Mon Dieu, | | pourvu que cela ne se sache pas ! -+- | \ La reine Victoria -+- / \ ^__^ \ (@@)\___ (__)\ )\/\ ||w | || || -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Using defoma for building package ?
On Fri, Apr 28, 2006 at 11:53:52AM +0200, artefact wrote: Le 28.04.2006 11:42, Pierre Habouzit a écrit : Le Ven 28 Avril 2006 11:06, artefact a écrit : Hi, I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... Note: I RTFM :-) and had a look at several others game package (penguin-racer, gltron and some others) and they all embbed the font files into the -data package. I think you can get safely it with: dirname $(grep '^begin ' /etc/defoma/hints/ttf-dejavu.hints | \ head -1 | cut -d' ' -f 2) but it may exist some more conventionnal way, I'm far from knowing defoma ;) Thank you, maybe it is not the best method, but it works ;-) But, as I can not satisfy with simple things, I would want defoma (or something else) to give me the name of an alternate font (looking quite like to), in case of the DejaVuSans font does not exist for my locale. The trouble is this game has been translated into Russian and could be in Arabic too. What mechanisms exists to get the name of related fonts in non latin alphabet ? DejaVu fonts support Russian. (And /usr/share/doc/ttf-dejavu/langcover.txt.gz says that DejaVuSans supports Arabic.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Using defoma for building package ?
Hi! * artefact [EMAIL PROTECTED] [060428 11:06]: I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... (Sorry, should have told that in my previous mail) One of my packages has a similar problem. I found it the easiest way to depend on the font package, preventing the font to be installed in my package, and creating a symlink to the font at the place where my programm expected the font to be. I hardcoded the path for the symlink, guessing fonts don't change their place very often. So no defoma magaic in my package. Yours sincerely, Alexander -- http://learn.to/quote/ http://www.catb.org/~esr/faqs/smart-questions.html signature.asc Description: Digital signature
Re: Using defoma for building package ?
Le vendredi 28 avril 2006 à 11:06 +0200, artefact a écrit : Hi, I am packaging a game, Wormux. This game use the font DejaVuSans which is already a Debian package. How can I use Defoma (I think this is the tool to use for this) to get this font path when building my package so that it could depend on the DejaVuSans package rather than including the font in the wormux-data package. Or maybe does it exist a debhelper for this but I can not get is name... Note: I RTFM :-) and had a look at several others game package (penguin-racer, gltron and some others) and they all embbed the font files into the -data package. How about using fontconfig ? Even without using the API you can use it to look for a font: $ fc-match --verbose sans | awk '$1==file:' file: /var/lib/defoma/fontconfig.d/D/DejaVu-Sans.ttf(s) Depending on fontconfig guarantees the sans and serif aliases will be available, using DejaVu as the default. -- .''`. Josselin Mouette/\./\ : :' : [EMAIL PROTECTED] `. `'[EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom signature.asc Description: Ceci est une partie de message numériquement signée