Linux 2d drawing tutorials

Linux specific forum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Font name and style are ignored on linux. You pass that in the string with
the font name.
Yust have a look at what you get back from FontRequester(). You
have to pass that to LoadFont()
quidquid Latine dictum sit altum videtur
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

Well FontRequester() return either 0 or 1...
But SelectedFontName() return the fontname string,
lets say "-urw-avantgarde-demibold-r-normal-*-*-280-*-*-p*-microsoft-cp1251".
So if you pass this one to the LoadFont() it's ok..
Trouble is when you do this in the source posted earlier
in the thread, you still get the default font...
nessie
User
User
Posts: 60
Joined: Mon Jul 07, 2003 1:19 pm
Location: Glasgow / Scotland
Contact:

Post by nessie »

@Freak: Do you know if this is going to be sorted in the next release, or should I look for another alternative?
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

Last time I talked to Fred about using different fonts with 2d Drawing commands under Linux, he said they were not yet supported.

As a solution I ended up drawing my own font set and displaying as sprites. :)
Image Image
nessie
User
User
Posts: 60
Joined: Mon Jul 07, 2003 1:19 pm
Location: Glasgow / Scotland
Contact:

Post by nessie »

I thought about this to Paul, at the moment I'm trying to use BMP fontts. I suppose I can work on the rest of the app for the next month or so and hopefully then an update will have been issued.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

That's right, regular fonts aren't supported with sprite commands for now. I don't know if it will be solved in the next release tough. But I will take a closer look to this problem, it won't stay unfixed.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Cool. I hope you can figure it out =)
Post Reply