hello friends! new(ish)!

Patches: Difference between revisions

From InstallGentoo Wiki v2
Jump to navigation Jump to search
>Galactus
(Created page with "A patch is a file that modifies the source code of a given piece of software, in order to alter the behaviour of said program. This page will deal with patches that were not a...")
 
>Galactus
Line 35: Line 35:


=====Bugs=====
=====Bugs=====
*[https://github.com/giddie/poppler-qt4-cairo-backend/issues/7 Overly intense fringes]
*[https://github.com/giddie/poppler-qt4-cairo-backend/issues/7 Overly intense fringes].
**Solution: patching Cairo with the [https://raw.githubusercontent.com/zhou13/poppler-subpixel/master/cairo/cairo-lcdfilter-make-default-default.patch cairo-make-lcdfilter-default.patch] will fix this.
**Solution: patching Cairo with the [https://raw.githubusercontent.com/zhou13/poppler-subpixel/master/cairo/cairo-lcdfilter-make-default-default.patch cairo-make-lcdfilter-default.patch] will fix this.
*Scaling of raster graphics defaults to nearest-neighbor.
*Scaling of raster graphics defaults to nearest-neighbor.

Revision as of 16:36, 10 April 2016

A patch is a file that modifies the source code of a given piece of software, in order to alter the behaviour of said program. This page will deal with patches that were not accepted by the upstream due to a myriad of reasons, although most are ideological.

Browsers

Chromium

See Notable patches.

Font rendering

Fontconfig-ultimate

The fontconfig-ultimate patchset aims to massively improve font rendering by patching Cairo, Fontconfig, and Freetype, as well as by using the infinality patchset.

It also comes with a myriad of bash scripts that can be used to tune your font rendering further to your liking. You will probably need more fonts.

Cairo

  • Changes the default lcdfilter of the FreeType rendering backend of cairo from FT_LCD_FILTER_LEGACY to FT_LCD_FILTER_DEFAULT;
  • Forces Cairo to respect fontconfig;
  • Adds gradient support;
  • Stops Cairo from tessellating empty boxes.

Fontconfig

  • Includes the fontconfig-infinality-ultimate patches to configure the infinality compliant directories.

Freetype

  • Infinality-ultimate patchset to massively improve font rendering with a finely tuned lcdfilter, heavier fonts, proper subpixel rendering, and more;
  • Adds ability to control stem darkening.

Giddie's Poppler

The Poppler-qt4-cairo-backend patchset enables subpixel rendering of fonts via Cairo in Poppler's Qt4 wrapper (used by Okular, for instance).

This patchset will:

  1. Add the Cairo backend to Qt4;
  2. Set the default Qt4 backend to Cairo;
  3. Force subpixel rendering in the backend.

To chime in and get the lead developer to merge it upstream, check the official bug report here.

Bugs

Zhou13's Poppler subpixel support

This patchset patches Evince, Cairo, and Poppler, in order to add subpixel support to non-Qt4 PDF frontends (like Evince) using Cairo's Poppler backend.

Cairo

  • Changes the default lcdfilter of the FreeType rendering backend of cairo from FT_LCD_FILTER_LEGACY to FT_LCD_FILTER_DEFAULT;
  • Forces Cairo to respect fontconfig.

Evince

  • Checks whether current page supports subpixel rendering and, if it does, enables it in the Poppler backend.

Poppler

  • Removes the FT_LOAD_NO_HINTING when trying to load fonts to the Cairo backend so the frontend can set the hint style;
  • Provides a new function that checks whether a PDF page could be subpixel-rendered.