Re: [ft-devel] How can I do to make the font a little thin?

2006-02-13 Thread Chia-I Wu
Hi,

On Mon, Feb 13, 2006 at 09:09:44AM +0800, DingLi(丁力) wrote:
 I use simsun.ttf(宋體),the upper is the image which use FreeType 2.0.9,and the 
 lower is which I want to get.
You can pass a negative strength value to the FT_Outline_Embolden.  This
function is only available from freetype 2.1.10 on.  If upgrading
freetype is not a choice, you can copy the code to your application.

-- 
Regards,
olv


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] How can I do to make the font a little thin?

2006-02-13 Thread Werner LEMBERG

  I use simsun.ttf(宋體),the upper is the image which use FreeType
  2.0.9,and the lower is which I want to get.

 You can pass a negative strength value to the FT_Outline_Embolden.

Does this work reliably, this is, does it respect a minimum thickness?
Negative values might be worth mentioning then.


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


Re: [ft-devel] How can I do to make the font a little thin?

2006-02-13 Thread david turner




Hello,

Werner LEMBERG a crit:

  

  I use simsun.ttf(宋體),the upper is the image which use FreeType
2.0.9,and the lower is which I want to get.
  

You can pass a negative strength value to the FT_Outline_Embolden.

  
  
Does this work reliably, this is, does it respect a minimum thickness?
Negative values might be worth mentioning then.


  

Just like for positive thickness, it certainly doesn't work reliably
past a certain threshold that heavily depends
on the glyph being processed.

Keep in mind that the emboldening/thinning algorithm doesn't change the
number of points in the glyph, so
certain corner cases like very acute angles or intersections are not
going to be handled properly anyway.

Apart from that, it should work ok for very small negative values, i.e.
values that are much smaller than the
average stem/stroke width within the glyph.

Hope this helps,

- David Turner
- The FreeType Project (www.freetype.org)



  Werner
  
  

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel
  


***Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message.*** 

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


RE: [ft-devel] How can I do to make the font a little thin?

2006-02-13 Thread 丁力
Thanks, I will try it.
But when I build a test example, I got some Link errors:

LINK : warning LNK4098: defaultlib LIBCMTD conflicts with use of other libs; 
use /NODEFAULTLIB:library
FreeTypeD.lib(ftglyph.obj) : error LNK2001: unresolved external symbol 
_FT_Bitmap_Copy
FreeTypeD.lib(ftglyph.obj) : error LNK2001: unresolved external symbol 
_FT_Bitmap_New
FreeTypeD.lib(ftglyph.obj) : error LNK2001: unresolved external symbol 
_FT_Bitmap_Done

What's the matter? I use VC++ 6.
Thanks.


 Does this work reliably, this is, does it respect a minimum thickness?
 Negative values might be worth mentioning then.

Bigpin


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


RE: [ft-devel] How can I do to make the font a little thin?

2006-02-13 Thread 丁力
Thanks everyone. 
I had tried the advice by Chia-I Wu, and I think it is available.
I found the file ftbitmap.c is not added into the freetype.dsp. So when I 
build it, I got the errors:

LINK : warning LNK4098: defaultlib LIBCMTD conflicts with use of other libs; 
use /NODEFAULTLIB:library
FreeTypeD.lib(ftglyph.obj) : error LNK2001: unresolved external symbol 
_FT_Bitmap_Copy
FreeTypeD.lib(ftglyph.obj) : error LNK2001: unresolved external symbol 
_FT_Bitmap_New
FreeTypeD.lib(ftglyph.obj) : error LNK2001: unresolved external symbol 
_FT_Bitmap_Done


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


RE: [ft-devel] How can I do to make the font a little thin?

2006-02-12 Thread 丁力
I use simsun.ttf(宋体),the upper is the image which use FreeType 2.0.9,and the 
lower is which I want to get.
My resolution is 1024*768.
Notice: For some reason, it has a little difficult using Freetype2.1.10 in my 
project, I must do a lot of change.

-Original Message-
From: Werner LEMBERG [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 11, 2006 6:37 AM
To: [EMAIL PROTECTED]
Cc: freetype-devel@nongnu.org
Subject: Re: [ft-devel] How can I do to make the font a little thin?


 In my project, I found displays and prints character does have
 slightly thick somewhat, especially in bold style and output
 with printer, so I want to carry on modification to make it a
 little thin, how can I do?

Please send a *small* image (preferable in PNG format) which shows
what you get, and another image which shows what you want.  And please
describe the used font, resolution, FreeType version, etc., etc.


Werner


songti.PNG
Description: songti.PNG
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] How can I do to make the font a little thin?

2006-02-12 Thread Werner LEMBERG

 I use simsun.ttf(宋体),the upper is the image which use FreeType
 2.0.9,and the lower is which I want to get.

How did you produce the lower string in the image?  How does MS
Windows render simsun.ttf (I don't have it, sorry)?  With recent
FreeType versions you might try the `light' rendering mode which
normally gives comparable results to Windows rendering.

 Notice: For some reason, it has a little difficult using
 Freetype2.1.10 in my project, I must do a lot of change.

Please explain.  I still think that upgrading would be the best route
for you.


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


Re: [ft-devel] How can I do to make the font a little thin?

2006-02-10 Thread Werner LEMBERG

 In my project, I found displays and prints character does have
 slightly thick somewhat, especially in bold style and output
 with printer, so I want to carry on modification to make it a
 little thin, how can I do?

Please send a *small* image (preferable in PNG format) which shows
what you get, and another image which shows what you want.  And please
describe the used font, resolution, FreeType version, etc., etc.


Werner


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel