Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could anybody suggest me some C++ library/framework or a way to render text on our machines .Following are the options which I have tried out and do not work for me .

1.SDL .Rendering using TTF .
TTF fonts consume a lot of memory .My memory restriction is 40 MB .

2.SDL .Rendering using bitmap font .
This works to some extent .However it cant be used for arabic,hebrew etc .Also its quality degrades if we zoom .It starts pixelating .

3.SDL .Rendering through rtf files .
Maintaining and updating rtf files is out of scope .I will have around 1000 rtf files.

4.Pango/Gecko Engine.
I need the solution for Windows xp, Red Hat 7.3 and Fedora Core 8 OS with compiling done on GCC34 / G++34 (Linux).

Solution I am looking is for , X and frame buffer systems both.

Also if there is anything which can be done using the methods tried by me ,then too please let me know .

Thank you in advance ;)
Posted
Updated 19-Oct-10 19:57pm

1 solution

If you are creating an application over Windows or whatever Linux that already have its own window manager, you should not deal with the "front problem": thay are part of the native API of the window manager.
(and should not your application to install fonts: that's an OS distribution problem).

A GUI library like FLTK, WxWidget, QT, ... has already a level of abstraction that lets you render text with a common model, calling the appropriate API of the underlying platform.

Pango/Geko are solution that allow you to draw yourself your fonts in your system (that is supposed a pure raster, not text-aware) and it is portable also to windows, but it is a duplication of functionality!
 
Share this answer
 
Comments
urbanboy92 22-Oct-10 0:45am    
Thank you Emilio for the suggestions .They were helpful. I will try out wxWidgets once , especially wxHTMLwidget.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900