bugThe FreeType Project - Bugs: bug #26347, Composite Glyphs not wokring when...

 
 

bug #26347: Composite Glyphs not wokring when FT_LOAD_NO_HINTING is used

Submitted by:  Santosh <ts_santosh1>
Submitted on:  Sun 26 Apr 2009 06:38:42 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 09 Jul 2010 02:32:15 PM UTC, comment #3:

Meanwhile, a whole bunch of crashes has been fixed. Since you've never provided more details, I'm closing this report.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 26 Apr 2009 12:25:22 PM UTC, comment #2:

args.flags = FT_OPEN_MEMORY;
/* I have this memory reserved for TTF font */
args.memory_base = 0x00290000;
args.memory_size = 21872;
error = FT_Open_Face( (FT_Library)lib, (const FT_Open_Args)&args, (FT_Long)0, (FT_Face)&face);

...Checking error...
.......
index = FT_Get_Char_Index(face,code);

error = FT_Load_Glyph(face,index,FT_LOAD_LINEAR_DESIGN | FT_LOAD_NO_HINTING);

...Checking error...

glyph = face->glyph;

printf("\n\r\Get the Glyph name");

if( FT_Get_Glyph_Name(face,index,char_name,16) )
{
return;
}

printf("\n\r\Get the Glyph name - Done");

.......
/* Load the glyph bitmap */
if(glyph->format != FT_GLYPH_FORMAT_BITMAP)
{
printf("\n\r\Rendering Start");
if(FT_Render_Glyph(face->glyph,FT_RENDER_MODE_MONO) != 0)
{
printf("\n\rPoint - 33");
return;
}
printf("\n\r\Rendering done");
}
.......

Santosh <ts_santosh1>
Sun 26 Apr 2009 08:16:23 AM UTC, comment #1:

I need a small compilable code snippet which demonstrates the
problem, together with the used font (but don't post a
copyrighted here! -- if necessary, send it to me privately).

And please test with the current FreeType version, either 2.3.9
or from the git repository.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 26 Apr 2009 06:38:42 AM UTC, original submission:

Hi,
I am using freeetype 2.3.5 in my device, its wokring fine when using "FT_LOAD_DEFAULT" as follows
Example: FT_Load_Glyph( , ,FT_LOAD_DEFAULT);

but if I use "FT_LOAD_LINEAR_DESIGN | FT_LOAD_NO_HINTING", then the composite glyphs are not rendered properly,

[1]. Only one glyph of the composite glyph is rendered, other glyph is missing.
[2]. This happens only for the first time, if next another composite glyph is rendered the both the glyphs render properly.
[3]. If first two simple glyphs are rendered first thennext composite glyph is properly rendered.
[4]. If I close and load the glyph [1] [2] [3] are valid
Example: FT_Load_Glyph( , ,FT_LOAD_LINEAR_DESIGN | FT_LOAD_NO_HINTING);

Please let me konw if you require any other specific information.

Santosh <ts_santosh1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by ts_santosh1 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Jul 2010 02:32:15 PM UTCwlStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Sun 26 Apr 2009 08:16:23 AM UTCwlStatusNone=>Need Info
      Assigned toNone=>wl

    Back to the top


    Powered by Savane 3.1-cleanup1