[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#189088: Environment variable to disable autohinting



On Sun, Aug 17, 2003 at 02:54:46PM +0200, Ricardo Galli wrote:
> Although is mentioned in the changelog.Debian.gz, I couldn't find any 
> reference to such variable.

I don't know where this is officially documented; I attach the mail from the
developer describing the changes.

You can place variables to be exported in /etc/openoffice/openoffice.conf.

> The problems is that with a good libfreetype/truetype fonts/fontconfig, 
> antialiasing and hinting do not obey fontconfig setup, and the menu fonts 
> don't look very nice (even replacing the font) and dont match with the 
> desktop fonts neither.
> 
> Take a look at http://mnm.uib.es/~gallir/tmp/ooo.png

Yes.  Really, it's upstream's problem and the team isn't big enough to dig
into this for hours for you.  Please take it upstream if you want to persue
it.

I am in the process of integrating patches from Ximian; maybe we'll get some
improvements that way.

> Perhaps a dumb question, can it be compiled againts the shared libfreetype6 in 
> Debian? So you don't have to take any decision on autohinting/bytehinting and 
> software patents...

This was already done by upstream.

$ dpkg -s openoffice.org-bin | grep freetype
Depends: libc6 (>= 2.3.1-1), libfreetype6 (>= 2.1.4-1), libgcc1 (>= 1:3.3.1-0rc1), libstdc++3 (>= 1:3.0.4-1), libstdc++5 (>= 1:3.3.1-0rc1), libxaw7 (>> 4.1.0), xlibs (>> 4.1.0), debconf (>= 1.2.0), openoffice.org (>> 1.0.99+1.1)

$ ldd /usr/lib/openoffice/program/libvcl645li.so | grep freetype
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x41658000)

Chris
--- Begin Message ---
Product Graphic System Layer
Type new
Title User configurable rendering system on Unix
Posted by Herbert.Duerr@sun.com
Affected ,all
Effective from SRX644t


API/ BASIC [ ]
Configuration [ ]
File format change [ ]
Help/ Guide [ ]
Performance test [ ]
Translation [ ]
UI relevant [ ]

Description
In order to give customers better control over text display the
rendering system has been made configurable. Because the feature
request got in too late for an UI change, it can currently only be
configured by using environment variables.

There have been scenarios that suggested configurability. When text
sizes get small something must give: readability, "visual fidelity",
or "sharpness". These quality dimensions are quite subjective and
depend on the quality of embedded bitmaps in fonts, the display
resolution, display blurriness, character complexity, etc. and
especially on the user.

Because the interactions are quite complex, the underlying
technologies are not easily understood, misconfiguration can degrade
the text display quality considerably and the preferences are not yet
configurabale via the UI, I suggest to play down this feature for now.

The priorities of the three quality dimensions mentioned above can be
set with these environment variables:
SAL_EMBEDDED_BITMAP_PRIORITY
SAL_ANTIALIASED_TEXT_PRIORITY
SAL_AUTOHINTING_PRIORITY

There are some simple rules:
- If SAL_EMBEDDED_BITMAP_PRIORITY=0 embedded bitmaps get disabled.

- If SAL_ANTIALIASED_TEXT_PRIORITY antialiasing gets disabled.

- If SAL_AUTOHINTING_PRIORITY=0 autohinting gets disabled.

- If antialiasing is possible on the display and
SAL_EMBEDDED_BITMAP_PRIORITY>SAL_ANTIALIASED_TEXT_PRIORITY
then embedded bitmaps will be prefered if they are available,
else the characters will be antialiased.

- If antialiasing is not possible on the display and
SAL_EMBEDDED_BITMAP_PRIORITY>SAL_AUTOHINTING_PRIORITY
then embedded bitmaps will be prefered if they are available,
else the characters will be monochreome autohinted.

These values default to
SAL_EMBEDDED_BITMAP_PRIORITY=2
SAL_ANTIALIASED_TEXT_PRIORITY=1
SAL_AUTOHINTING_PRIORITY=1


---------------------------------------------------------------------
To unsubscribe, e-mail: features-unsubscribe@gsl.openoffice.org
For additional commands, e-mail: features-help@gsl.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: allfeatures-unsubscribe@openoffice.org
For additional commands, e-mail: allfeatures-help@openoffice.org

--- End Message ---

Attachment: pgpk9OIkeNKZf.pgp
Description: PGP signature


Reply to: