Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Rendering > How to fill Tru...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 124 of 184
Post > Topic >>

How to fill Truetype glyph outlines into Black and white solid images?

by "lucy" <losemind@[EMAIL PROTECTED] > Mar 4, 2005 at 10:24 PM

Hi all,

I have successfully obtained the Truetype fonts glyph and rendered onto 
screen as an outline bitmap... however I want to have these outlines of 
fonts filled...

I have tried flood fill, but it needs correctly setting up a seed, which
is 
a pixel safely inside the font outline... but sometimes there are contours

inside contours, and lacking of seed information making my flood-fill very

ugly...

I have also tried scanline fill, but at some low resolution there will be 
some degenerated outlines, for example, a single pixel-width vertical 
line(which should be regarded as already filled by 1-width wide band), a 
multiple-pixel horizontal flat band, etc. My scanline filling program does

not correctly recogonize these degerated cases and sometimes underfills
some 
regions and sometimes overfills some regions...

I want to ask what is the correct way to fill the Truetype glyph? Does the

truetype font file has information of where are the seeds neccessary for 
floodfill?

Also, if I go deep into how the glyph outlines are drawn, I can see in
fact 
they are straightlines, if I record down all these straightlines' starting

and ending points(I am not sure they are in good order for polygon fill, 
etc. It seems to me that they are not in counterclockwise, or anyother 
orders...) how do I fill the outlines using information of these starting 
and ending points?

thanks a lot
 




 2 Posts in Topic:
How to fill Truetype glyph outlines into Black and white solid i
"lucy" <lose  2005-03-04 22:24:46 
Re: How to fill Truetype glyph outlines into Black and white sol
"Laptop2" <d  2005-03-05 11:02:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 14:20:33 CDT 2008.