Click here to Skip to main content
11,571,102 members (60,647 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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 Wink | ;)
Posted 19-Oct-10 18:56pm
Edited 19-Oct-10 19:57pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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!
  Permalink  
Comments
urbanboy92 at 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)

  Print Answers RSS


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 21 Oct 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100