https://bugs.documentfoundation.org/show_bug.cgi?id=157348

--- Comment #16 from Frank Steiner <[email protected]> ---
Change the title because the problem is not caused by ignoring the interpreter
version but by ignoring hint settings.

The relevant code part in cairotextrender.cxx is this:

// always true because pFontOptions is set and bSubpixelPositioning is true
   if (pFontOptions || bDisableAA || bSubpixelPositioning)
     {
       // sets eHintStyle to the value of Xft.hintstyle=... from ~/.Xdefaults
       // If none is defined there, pFontOptions has CAIRO_HINT_STYLE_MEDIUM
set
       cairo_hint_style_t eHintStyle = pFontOptions ?
cairo_font_options_get_hint_style(pFontOptions) : CAIRO_HINT_STYLE_DEFAULT;

       // with bSubpixelPositioning=true, this is true for
Xft.hintstyle=none/slight and false otherwise
       bool bAllowedHintStyle = !bSubpixelPositioning || (eHintStyle ==
CAIRO_HINT_STYLE_NONE || eHintStyle == CAIRO_HINT_STYLE_SLIGHT);

       // always true if bSubpixelPositioning=true
       if (bDisableAA || !bAllowedHintStyle || bSubpixelPositioning)
       {
         ...
         // bAllowedHintStyle is false if Xft.hintstyle=medium/full
         if (!bAllowedHintStyle) {
           // so Xft.hintstyle=medium/full is reset to slight
           cairo_font_options_set_hint_style(pOptions,
CAIRO_HINT_STYLE_SLIGHT);
         }


When changing the last line to
    cairo_font_options_set_hint_style(pOptions, CAIRO_HINT_STYLE_MEDIUM);
and recompiling libreoffice, Arial etc. will be shown in their thin version
again. So it would work when setting "Xft.hinting: hintmedium" if this wasn't
changed to CAIRO_HINT_STYLE_SLIGHT in this last line.

I hope one of the devs will take a look at this and reconsider the decision to
force CAIRO_HINT_STYLE_SLIGHT when subpixelpositioning is enabled. I really
don't see why this would be neccessary...

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to