How do I find a Font

Just starting out? Need help? Post your questions and find answers here.
Hot Pockets
User
User
Posts: 51
Joined: Mon Jun 01, 2009 3:56 am

How do I find a Font

Post by Hot Pockets »

Am looking for a fixed size and not a proportinalized font. Which is a font that each letter has the same width size. Pure basic asks for a font number but in all the help bookes, survival guide I never found a lit of Fonts and there numbers. Where could I find that list and also whether they are Fixed size fonts.?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

The fonts are on your machine. They are not PureBasic fonts, you merely load them with Purebasic.

Or have I misunderstood the question?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Windows manages the fonts. Your system contains a number of them. See LoadFont() and FontID() in the helpfile.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Post by Vera »

Hi Hot Pockets,

a little while ago I myself searched to find a suitable monospaced font and made a small comparing overview about some I found quite good and bundled it into a small download including needed and further links: ProggyFonts-vs1.zip or review online.
TIP: there's another thread about ProggyFonts where you can see some more examples: Beste Monospace-Schriftart

And just to see which fonts you have currently installed you may use FontViewOK by SoftwareOk or new WinFontsView by NirSoft. (In case you're interested I can recommend you some more comprehensively viewers.)

Greeting ~ Vera
Last edited by Vera on Wed Feb 18, 2015 9:07 pm, edited 1 time in total.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: How do I find a Font

Post by Kaeru Gaman »

Hot Pockets wrote: Pure basic asks for a font number
this number is returned by or defined in the LoadFont command.
you load the font by name, just like any other application.
as blueznl already said, See LoadFont() and FontID() in the helpfile.


the font has to be preinstalled on the client machine.
when you use a font that is present on your computer, make sure it's really part of the basic Windows-Package.
there are only few fonts wich allow you to include them into a package and ship them with your application.

you can obtain free fonts from some sides in the internet (read carefully if they are really free, don't include ripped content to your package).

there is also a side where you can create your own font, and you can download a lot of fonts under CC-license.
http://fontstruct.fontshop.com/


depending on what surface you want to display: on a DX-Screen a bitmapfont/spritefont is often much easier to handle.
oh... and have a nice day.
Hot Pockets
User
User
Posts: 51
Joined: Mon Jun 01, 2009 3:56 am

Fonts

Post by Hot Pockets »

You were alittle of, I knew That the fonts were in windows but the font number thru me. Thanks to akl. The downloads Vera supplied are very helpful as was Mr Gaman's Font Structure website which is very interesting. Again thanks to all of you people.
Post Reply