Sai,

you need to cache glyphs in some way; performance is not usually good enough to create glyphs on demand and throw them away. FreeType has a glyph caching system: http://www.freetype.org/freetype2/docs/reference/ft2-cache_subsystem.html.

Best regards,

Graham Asher


On 17/10/2014 09:39, sai prashanthi wrote:
Hello,

I am running freetype on a new Graphics controller. Its quiet
confidential. I am doing a basic text rendering. I am using the
following functions i.e.

Get_Char_Index

Load_Glyph

Get_Glyph

Get_CBox

Render

Draw

All the functions take a few microseconds to get executed except Load
Glyph. It takes a few milli seconds. Is there something that I should
take care of?

Best regards,

Sai Prashanthi Ramu

On Tue, Oct 7, 2014 at 10:30 AM, Werner LEMBERG <w...@gnu.org> wrote:
I am trying to port freetype to a graphicas controller (not out in the
market yet). This might seem like a silly question. But I couldn't
find sufficient documentation online. I am using freetype 1.0. I am
allowed to use only this.
Version 1.0 of FreeType?   This has been released in 2000, 14 years
ago!  We no longer support FreeType 1.

When I try TT_Open_Face, i should specify a path to font file.
[...]
Sorry.  Please check the current FreeType version, 2.5.3.  Due to its
modular design you can easily disable all modules you don't need.


     Werner
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel



--
Graham Asher
founder and CTO
CartoType Ltd
graham.as...@cartotype.com
+44 (0) 7718 895191
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to