Hi,
I'm also having trouble making freej recognize my truetype fonts.
When I run this script:
text = new TextLayer ();
add_layer(text);
//text.font(2);
text.print("Hello world");
it opens but the letters are just blocks, like alejo's problem earlier.
If I uncomment the text.font(2) call I get the following error:
[!] script error in basic.js
[!] txt_layer_font: argument 0 is not a string
[!] execution of script aborted
[!] Error closing audio stream
My ttf fonts are installed in /usr/share/fonts/truetype/msttcorefonts
and /usr/share/fonts/truetype/windowsfonts/
so I have added these directories in the sourcecode (in
text_layer.cpp, txt_layer.cpp and tbt_layer.cpp) to make freej look
for the fonts there. I have done this earlier and it worked then, but
I have reainstalled ubuntu edgy, and this time freej just won't detect
my fonts.
I installed the msttcorefonts by $sudo apt-get install msttcorefonts
the windowswonts were just copied to the directory, I then did
$ mkfontdir
$sudo fc-cache -f
to update the fonts-cache-1 files.
Any Ideas anyone?
Svein
On 1/29/07, alejo d <alejoduque@???> wrote:
> tx for the tip y obviamente tx for the code.
>
> :)
>
> i will try it on wednesday streaming the dorkbot medellin out via freej.
>
> the url i will post when the stream is up
>
> /a
>
> On 1/30/07, jaromil <jaromil@???> wrote:
> >
> > > >
> > hi Alejo!
> >
> > big up for your freej hacking :)
> >
> > On Mon, Jan 29, 2007 at 01:48:08AM +0100, kdag wrote:
> > > got it! i had to create some of those dirs, and be sure that my user
> > account
> > > had permissions to use them.
> > >
> > > but the question still remails, how can i select one typegraphy over
> > another
> > > one? about the size, one can just zoom in or zoom out the txt layer....
> > >
> > > so please let me know how to change the font family...
> >
> > from the text console the keys are
> > 'p' and 'o', 'u' and 'i'
> > and 'k' and 'l'
> >
> > generally the keys on the right hand of the keyboard are for changing
> > layer parameters, 'm' and 'n' for instance change tuning on video4linux
> > devices with a TV tuner.
> >
> > there is still no way to do that from javascript, i'll complete it ASAP
> >
> > hope that helps,
> > ciao
> >
> > - --
> > (_ jaromil _)(_ http://korova.dyne.org _)
> > > > _______________________________________________
> > Freej mailing list
> > Freej@???
> > http://mailinglists.dyne.org/mailman/listinfo/freej
> >
> _______________________________________________
> Freej mailing list
> Freej@???
> http://mailinglists.dyne.org/mailman/listinfo/freej
>