Using defoma for building package ?

2006-04-28 Thread artefact
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 ?

2006-04-28 Thread artefact
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 ?

2006-05-02 Thread artefact
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]