Friday, December 7, 2007

firefox fails to render text properly

i noticed recently, that on some pages text containing 'fi' letters looks garbled. so i decided to check it and try to figure out what's wrong.

my 1st thought was that's a freetype vs dejavu sans problem, but creating simple repro proved it wrong - it rendered properly.

so i've found a bad looking web page, and checked it's source. it was created using msword (contained Mso*** styles, etc), and the problematic text was in the block styled as text-align: justify. BANG!

looks like firefox does incorrect alignment of justified text.

here's a repro (btw, can someone check on windows too?)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>firefox font rendering bug</title></head>
<body><p style='text-align:justify;font:15pt "DejaVu Sans";'>ficficfic</p></body>
</html>


here's how it looks:

0 comments: