Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
C
cairo
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 24
    • Merge Requests 24
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cairo
  • cairo
  • Merge Requests
  • !1

Open
Opened Nov 11, 2018 by Nikolaus Waxweiler@madig
  • Report abuse
Report abuse

Set default LCD filter to FreeType's default

  • Overview 17
  • Commits 1
  • Pipelines 2
  • Changes 1

This MR has been motivated by https://bugzilla.redhat.com/show_bug.cgi?id=1645763. It turns out that without fontconfig telling cairo differently, cairo will chose the legacy LCD filter which seemingly does no filtering at all. This MR changes the default to FreeType's default.

Running the test suite locally gives me some (expected?) rendering difference in some glyph tests. Not sure what to do about them? There is no API to select the legacy filter for them to avoid changes? Also note that there's two ways FreeType can do subpixel rendering:

  1. The traditional one behind the FT_CONFIG_OPTION_SUBPIXEL_RENDERING define that comes with the ability to set LCD filters.
  2. A new one called "Harmony" that gets used if the define above is undefined and gives the same result as the light LCD filter ± rounding errors. You can't set filters here but can specify the subpixel geometry (e.g. something for pentile displays).
Edited Nov 11, 2018 by Nikolaus Waxweiler
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: cairo/cairo!1
Source branch: ft-default-lcd-filter