Bug 696819 - Subpixel rendering
Summary: Subpixel rendering
Status: RESOLVED WONTFIX
Alias: None
Product: MuPDF
Classification: Unclassified
Component: fitz (show other bugs)
Version: unspecified
Hardware: PC All
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-04 00:04 UTC by ecir.hana
Modified: 2016-06-06 06:25 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ecir.hana 2016-06-04 00:04:57 UTC
Introduction:
Subpixel rendering is a way of rasterizing curved shapes that takes advantage of the pixel RGB stripes arrangement on the screen:
https://en.wikipedia.org/wiki/Subpixel_rendering

Synopsis:
It would be great if MuPDF supported the subpixel rendering of text as it makes the text appear sharper and hence more pleasant to read.

References:
http://askubuntu.com/questions/45255/why-isnt-document-viewer-2-32-0-using-subpixel-rendering
http://askubuntu.com/questions/778852/pdf-viewer-with-subpixel-rendering
Comment 1 Robin Watts 2016-06-06 06:25:04 UTC
In order to support subpixel rendering, we need to know the layout of the sub-pixels on the screen.

Most computer monitors are RGBRGBRGB, though some are BGRBGRBGR.

Many devices have more complex layouts (with certain subpixels shared between pixels). For handheld devices this is even harder to get right due to the need to support different rotations.

We therefore take the view that if you want subpixel rendering, you should update the transform on input to be 3 times as wide, render to a wider pixmap, and then filter it down according to your own specific devices screen.

The core is entirely capable of doing this with no extra changes required on our part.