Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render small-caps font variant #1611

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Jun 24, 2020

  1. render small-caps font variant

    - pango has a PANGO_VARIANT_SMALL_CAPS variant that can be added to the font description, but setting it doesn't cause text to be rendered in small-caps, even if the font supports it
    - adding the appropriate opentype features to the layout's attributes list will use the font's small-caps glyphs if it provides them
    samizdatco committed Jun 24, 2020
    Configuration menu
    Copy the full SHA
    48059a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    56260c7 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2020

  1. added textAttributes field to state struct

    - the font-variant state will get out of sync with the fontDescription across context-saves & restores unless we keep a copy of the PangoAttrList around
    samizdatco committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    ed7d4a1 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2020

  1. only set opentype features on sufficiently new versions of pango

    - the pango NEWS file suggests 1.37.1 was where the `pango_attr_font_features_new` call was added...
    samizdatco committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    4d205f7 View commit details
    Browse the repository at this point in the history
  2. skip the small-caps variant test on windows

    - it can be enabled if/when the pango version is updated
    samizdatco committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    7df005d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1082954 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c99281c View commit details
    Browse the repository at this point in the history