freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Management of resources for bitmap


From: Govind
Subject: Re: [ft] Management of resources for bitmap
Date: Wed, 6 Nov 2013 11:44:22 +0530

You can try with generating bitmap statically in one go in the format compatible with language you are using. Later, this generated bitmaps resources can be used using index access mapped with string Unicode chars.

Regards
Govind

From: Jacques Beaumont
Sent: ‎05-‎11-‎2013 10:18 PM
To: address@hidden
Subject: [ft] Management of resources for bitmap

First congratulation to the developers. The Free type
  library is just a wonderful resource.

   I'd like to manage memory in glyph to bitmap conversion
   in order to optimize performance. I may miss something but
   I could not find a routine to do that.

   Here is the context.
   I am developing a graphic front end interface which requires annotation,
   essentially small string <128 chars, that I send to the graphic engine
   through the texture buffer.

   Now in order to preserve flexibility e.g. rendering fonts of different size and color
   I'd like to proceed this way. Load in memory the font file, scan my strings, render
   them in a memory buffer large enough to accomodate any given string and then
   load the rendered string in the texture buffer for later placement on graphics.

    I can do all this, but I cannot manage memory resources for bitmap. The FT_Render_Glyph
    routine allocates memory for each bit map and does not let me assign my own resources.
    the FT_Outline_Render allows me to memory management, but I could never get it to work well
    when I mix different types of fonts and size (need for subscript/superscript and mixing greek and latin
    letters). I'd like to use the render used by FT_Render_Glyph and manage the resources myself

    Any suggestions??



Sincerely,
Jacques






Jacques Beaumont Ph.D.
Visiting Professor
Department of Pharmacology
Upstate Medical University of SUNY
Adjunct Associate Professor
Department of Biomedical and Chemical Engineering
Syracuse University

Phone: 315-464-8007

_______________________________________________
Freetype mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/freetype

reply via email to

[Prev in Thread] Current Thread [Next in Thread]