Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  FreeType and FTGL?  (Read 2577 times)
0 Members and 1 Guest are viewing this topic.
Offline Catharsis

JGO Coder


Medals: 21
Projects: 1
Exp: 18 years


TyphonRT rocks!


« Posted 2004-12-18 07:11:37 »

I'm curious with the addition of DevIL to LWJGL if there are folks here that are interested in possible bindings to FreeType and FTGL for font support.

www.freetype.org/
http://homepages.paradise.net.nz/henryj/code/index.html#FTGL

These two projects seem to be used widely.

Please support my Kickstarter for next-gen video apps for Android:
http://kck.st/1xA3R61

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2004-12-18 08:59:43 »

Seems rather more application oriented than gaming? - since games typically just use a bitmap font (which usually works fine).
I have some stuff in my head about what needs to be in the lwjgl distribution and what the lwjgl project is becomming - I'll try and write it down tonight and post it to the boards, since it relates to adding more bindings.

Offline Catharsis

JGO Coder


Medals: 21
Projects: 1
Exp: 18 years


TyphonRT rocks!


« Reply #2 - Posted 2004-12-18 09:10:31 »

Indeed.. This pair does support bitmap font rendering and more, but you can simply access a large number of already existing font file types rather than having to deal with a particular custom bitmap format.  It also handles antialiasing and other useful features.  One such feature is making bitmaps for particular sizes on the fly from TrueType fonts. That seems very useful for games and of course apps.

Please support my Kickstarter for next-gen video apps for Android:
http://kck.st/1xA3R61

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 434
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2004-12-18 10:12:43 »

...except I tried using FreeType a while ago and the font rendering quality was so abysmal next to Java2D I ditched it after many days fruitless tweaking.

Java2D font rendering truly is sublime! All it really needs now is subpixel rendering.

Cas Smiley

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #4 - Posted 2004-12-18 11:27:19 »

>One such feature is making bitmaps for particular sizes on
>the fly from TrueType fonts.

Which means you need to redistribute the ttf file and that's *really* expensive.

The default fonts are too boring and public domain fonts are pretty rare.

So... uhm... bitmap fonts for me.

弾幕 ☆ @mahonnaiseblog
Offline Catharsis

JGO Coder


Medals: 21
Projects: 1
Exp: 18 years


TyphonRT rocks!


« Reply #5 - Posted 2004-12-18 12:03:55 »

I haven't used it yet, just read all the info on the web sites.

Did you use version 1.x or 2?

From the screenshots they offer of v2 it seems quite capable in regard to antialiased font support.

Looking over the docs there also seems to be support for creating bitmaps suitable for sub pixel rendering.
See FT_RENDER_MODE_LCD
http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Mode

I'll be looking to check these two libraries out soon though..

Please support my Kickstarter for next-gen video apps for Android:
http://kck.st/1xA3R61

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Offline Catharsis

JGO Coder


Medals: 21
Projects: 1
Exp: 18 years


TyphonRT rocks!


« Reply #6 - Posted 2004-12-18 12:18:06 »

Quote
>One such feature is making bitmaps for particular sizes on
>the fly from TrueType fonts.
Which means you need to redistribute the ttf file and that's *really* expensive.
The default fonts are too boring and public domain fonts are pretty rare.
So... uhm... bitmap fonts for me.


I'm not following on the redistribution of ttf files being expensive angle. They are small in file size, plus are nice because they are self contained in a single file. Also punching in "truetype free" in google leads to plenty of public domain fonts. And plenty that are available for a small fee.

Bitmap fonts need the image and a separate file explaining the spacing; plus are locked to one size.

May I ask where you get all your bitmap fonts from?

I just have scrounged up some from what others have posted around here..

Please support my Kickstarter for next-gen video apps for Android:
http://kck.st/1xA3R61

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #7 - Posted 2004-12-18 12:29:39 »

>I'm not following on the redistribution of ttf files being
>expensive angle. They are small in file size, plus are nice
>because they are self contained in a single file. Also
>punching in "truetype free" in google leads to plenty of
>public domain fonts. And plenty that are available for a
>small fee.

Yea, there are lot's of "free" fonts. The devil is in the detail - the license. You can also buy high quality commercial fonts for 20-80 bucks, but... redistribution of the ttf isn't allowed.

>May I ask where you get all your bitmap fonts from?

We generate em from public domain, free or commercial fonts with tools like bitmap font builder or selfwritten tools. Redistribution of those textures (typeface) is perfectly legal otherwise you couldn't do anything with a font.

弾幕 ☆ @mahonnaiseblog
Offline Catharsis

JGO Coder


Medals: 21
Projects: 1
Exp: 18 years


TyphonRT rocks!


« Reply #8 - Posted 2004-12-18 19:35:16 »

Thanks for the BFB tip... Smiley

Yeah.. I can see the pain in license issues and the capability to load various font formats could be argued as a non-essential feature for game development.  

The frameworks I am releasing are suitable for game engine development or general multimedia apps, so supporting all sorts of fonts is a line item in my mid range dev path.

However, if the functionality was available .and. it was simpler to use than straight up bitmap fonts then I believe devs will use it.  Particularly if a nice rendering package is built around FreeType and FTGL that does allow sub pixel rendering and stuff like that without the dev having to code it.

A library of license friendly fonts could also be created.

So, yeah.. I'm approaching things from a middleware / tools perspective and not raw "only what is needed" game dev which is closer to the path of LWJGL.

Please support my Kickstarter for next-gen video apps for Android:
http://kck.st/1xA3R61

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Offline whome

Junior Devvie




Carte Noir Java


« Reply #9 - Posted 2004-12-19 10:31:39 »

What I see a big problem with app centric bitmap fonts, is (almost) unable to support international letters and special characters. Look at the Arial font with Character Map, or newer windows even has unicode Arial.  Single font gives you western, cyrillic, arab, hebrew and so on....
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 434
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #10 - Posted 2004-12-19 16:14:22 »

I solved that by simply rendering every glyph in the font. There are thousands of them!

Cas Smiley

Offline Raghar

Junior Devvie




Ue ni taete 'ru hitomi ni kono mi wa dou utsuru


« Reply #11 - Posted 2004-12-26 13:01:19 »

Did anyone tried to create a 3D model from glyph with help of Java2D?

While we are at the discusion about a nasty isues with fonts, what about some links on favorite PD, or BSD fonts.
Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Reply #12 - Posted 2004-12-26 14:14:42 »

Quote
While we are at the discusion about a nasty isues with fonts, what about some links on favorite PD, or BSD fonts.

Well, there are so many fonts... My favourite is Verdana Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (33 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (59 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!