View Single Post
Old 07-01-2008, 09:42 AM   #1
caritas
Enthusiast
caritas doesn't littercaritas doesn't litter
 
Posts: 26
Karma: 161
Join Date: Feb 2008
Device: Sony PRS505
Another embold method for rending PDF

To enhance readability of PDF file on e-ink reader, the glyph (font) need to be embolded. Current available embold method is something as follow:

1. Enlarge image
2. dilate ink
3. Scale image to original size

Now, I find another method to embold font in glyph granularity via using:

FT_GlyphSlot_Embolden() of libfreetype

A patch for libpoppler is attached. I think this method can provide acceptable effect with better performance, because the embold only need to be done once for each glyph. So this may can be used in software in e-ink devices.

The rending effect is attached too:

chap6.pdf: sample pdf file
org.png: original rending method, without embolding
embold.png: embolded with this method
pl.png: embolded with pdf2lrf.
Attached Thumbnails
Click image for larger version

Name:	org.png
Views:	711
Size:	31.4 KB
ID:	13981   Click image for larger version

Name:	embold.png
Views:	726
Size:	35.0 KB
ID:	13982   Click image for larger version

Name:	pl.png
Views:	718
Size:	37.7 KB
ID:	13983  
Attached Files
File Type: gz embold.patch.gz (376 Bytes, 687 views)
File Type: pdf chap6.pdf (267.9 KB, 691 views)
caritas is offline   Reply With Quote