[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ft-devel] freetype2 question
From: |
Jon Foster |
Subject: |
RE: [ft-devel] freetype2 question |
Date: |
Fri, 31 Oct 2008 11:55:36 -0000 |
Hi,
ayoub mejri [mailto:address@hidden wrote:
> I have made the following:
>
> If(first_line)
> FT_Set_Char_Size(text2bitmap->ft_face,24,24,600, 600);
>
> for(i=0;i<strlen(text);i++){
> FTC_CMapCache_Lookup( , , ,text[i]);
> text2bitmap->scaler.width=(FT_UInt)64*24;
> text2bitmap->scaler.height=(FT_UInt)64*24;
> glyph_index=FTC_ImageCache_LookupScaler(
> text2bitmap->image_cache, &text2bitmap->scaler,
> ft_load_flags, glyph_index, &CacheGlyph, NULL );
> draw(glyph_index);
> }
>
> If(second_line)
> FT_Set_Char_Size(text2bitmap->ft_face,12*64,12*64,600, 600);
>
> for(i=0;i<strlen(text);i++){
> FTC_CMapCache_Lookup( , , ,text[i]);
> text2bitmap->scaler.width=(FT_UInt)64*12;
> text2bitmap->scaler.height=(FT_UInt)64*12;
> glyph_index=FTC_ImageCache_LookupScaler(
> text2bitmap->image_cache, &text2bitmap->scaler,
> ft_load_flags, glyph_index, &CacheGlyph, NULL );
> draw(glyph_index);
> }
>
> -the problem is that characters found in first
> line and second are both written in size of 24 ,
> but I would like to have the second line written
> in size of 12
You need to remove the FT_Set_Char_Size calls. If you do that,
then it should work.
Kind regards,
Jon
P.S. Please keep the discussion on the mailing list.
**********************************************************************
This email and its attachments may be confidential and are intended solely for
the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent those
of Cabot Communications Ltd.
If you are not the intended recipient of this email and its attachments, you
must take no action based upon them, nor must you copy or show them to anyone.
Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232
Co. Registered in England number 02817269
Please contact the sender if you believe you have received this email in error.
**********************************************************************
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________