8000 Alpha-tested rasterization isn't as good as FreeType's monochrome · Issue #96 · dfrg/swash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Alpha-tested rasterization isn't as good as FreeType's monochrome #96
Open
@robbie01

Description

@robbie01

Here is a comparison of FreeType (via freetype-rs) and swash (via cosmic-text) using the free Virtue font, rendered at a size of 12 px and scaled by a factor of 4x. FreeType (on the top) is using LoadFlag::TARGET_MONO to generate a 1-bit bitmap using monochrome-optimized hinting, whereas swash (on the bottom) is using an alpha test where alpha >= 0x85. (0x86 looks identical. Lower thresholds cause the comma to look blocker, and higher ones open a hole in the bottom of "a".)

Note carefully the renderings of C, R, A, G, u, a, y, and d.

Image

My apologies if aliased monochrome rasterization is out of scope here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0