Horde3D

Next-Generation Graphics Engine
It is currently 03.05.2025, 16:36

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Horde and Unicode
PostPosted: 20.05.2008, 19:01 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
Horde doesn't compile when I switch to Unicode, lots of string work assumes multi-byte characters. I'd like to use Unicode for all my text and I'd like to link with Freetype for font handling.

Any plans for Unicode builds?


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde and Unicode
PostPosted: 22.05.2008, 08:52 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
I must admit that I don't have much experience with different character sets. Do you think they are required for Horde? I think things like shader context or resource names don't need to be unicode. And if you want to daw Unicode text you need a new font routine anyway (the current one uses a texture with the 256 characters).


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde and Unicode
PostPosted: 22.05.2008, 11:12 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
Yeah, Unicode will probably only be required for the font system. If a better font utility is developed in the future, this should be taken into account :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde and Unicode
PostPosted: 22.05.2008, 18:33 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
utf8 encoded text wouldn't need unicode compile param. right?


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde and Unicode
PostPosted: 22.05.2008, 18:39 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
marciano wrote:
I must admit that I don't have much experience with different character sets. Do you think they are required for Horde? I think things like shader context or resource names don't need to be unicode. And if you want to daw Unicode text you need a new font routine anyway (the current one uses a texture with the 256 characters).

I will use freetype do you suggest one big texture or multiple textures of fixed size(for example 512x512 textures, so to fit 512 chars you may need two or more textures depending on the font resolution).


Top
 Profile  
Reply with quote  
 Post subject: Re: Horde and Unicode
PostPosted: 22.05.2008, 23:31 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
kal wrote:
do you suggest one big texture or multiple textures of fixed size(for example 512x512 textures, so to fit 512 chars you may need two or more textures depending on the font resolution).

I'm working on a font system on another engine at the moment (I'm contracted; can't share the code :( ), where I pick a texture size (256x256 to 2048x2048), and then use as many textures as required to fit all the glyphs. There is a mapping function where you can give it a character, and it tells you which texture and UV coordinates to use.

Also, when using my font-generator tool in unicode-mode, it would take up too much memory to render every single unicode character to the textures. So the tool opens a text document, and only generates texture data for characters that appear in that document.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 96 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group