liushaolin / gdipp

Automatically exported from code.google.com/p/gdipp
0 stars 0 forks source link

Word spacing issues in Opera 10.53 #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which program triggers the problem? Specify the filename if possible.
Opera 10.53

What steps will reproduce the problem?
1. Please take a look at one of the site examples provided below, in the 
screenshot section.
2.
3.

What is the expected output? What do you see instead?
Punctuation marks placement is sometimes wrong and spaces between words 
vary in width.

What version of gdipp (include renderer)? On which operating system?
gdipp version is 0.7.6, installed with default settings (as service, 
didn't modify any other settings). OS is Vista SP2 32 bit.

Please provide any additional information below. Screenshots always help.

Screenshots:
1. From http://www.reddit.com/r/programming/comments/bfdoe :

http://imgur.com/xPJTG.png

Spaces between words are compressed, punctuation marks overlap with last 
letters of the word before them. Notice that the site uses Verdana, which 
is wider than average.

2. From http://blog.woobling.org/2009/05/why-i-dont-use-couchdb.html :

http://imgur.com/cq4lr.png

Here the situation is the other way around, the spaces are wider than 
expected. Some punctuation marks are have gaps before them, although there 
are no spaces in the source code. The font looks rather more dense than 
average. I.e. a wider font leads to shorter gaps, a denser font to wide 
gaps.

Other than that, thanks for the nice library.

Original issue reported on code.google.com by ilja.hec...@gmail.com on 20 May 2010 at 8:11

GoogleCodeExporter commented 9 years ago
This seems to be rather Opera's problem, since both Links look okay in Chrome 
and 
Firefox.

Original comment by ilja.hec...@gmail.com on 20 May 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Common reasons of inter-character gaps include native incompatibility between 
GDI and
FreeType, and application-specific character advancement. This Opera problem 
seems to
be the second, since Firefox renders OK. Application may provide the distance 
between
the left edge of the previous character and the current character. gdipp uses 
this
distance in prior to calculated distance. If such provided distance is too 
small or
large, the gap may become problematic.

Original comment by crendk...@gmail.com on 26 May 2010 at 5:33

GoogleCodeExporter commented 9 years ago
This is also true in the NtEmacs and I think the reason is just like in opera. 
Space and punctuation are not fully displayed sometimes.

Original comment by lwth...@gmail.com on 25 Jun 2010 at 8:42

GoogleCodeExporter commented 9 years ago
Can you provide screenshot of the NtEmacs case?

Original comment by crendk...@gmail.com on 10 Aug 2010 at 7:13

GoogleCodeExporter commented 9 years ago
This issue is still present in gdipp 9.1 with Opera 10.62 on Windows XP SP3. 
The problem doesn't happen with ezgdi though.

Original comment by astroph...@gmail.com on 29 Sep 2010 at 7:23