Skip to content

PragmataPro Mono 0.903 renders glyphs at 2x width in Xft/st/urxvt (and any ascii symbols) #354

@neuromagus

Description

@neuromagus

Font: PragmataPro_Mono_R_0903.ttf
Issue: Glyphs render at exactly 2x their correct width through libXft

Evidence:

  • PragmataPro Regular pixelsize=14: renders 95 ASCII chars = 3610 pixels (38px avg)
  • PragmataPro Mono pixelsize=14: renders 95 ASCII chars = 7220 pixels (76px avg)
  • Ratio: 7220/3610 = 2.0 (exactly double)

Affected: st, urxvt (any terminal using Xft)
Not affected: Wayland terminals (Foot), xterm

./st # PragmataPro
DEBUG: extents.xOff=3610, strlen=95, calculated width=38
DEBUG: extents.xOff=3610, strlen=95, calculated width=38
DEBUG: extents.xOff=3610, strlen=95, calculated width=38
DEBUG: extents.xOff=3610, strlen=95, calculated width=38

./st # PragmataPro Mono
DEBUG: extents.xOff=7220, strlen=95, calculated width=76 
DEBUG: extents.xOff=7220, strlen=95, calculated width=76 
DEBUG: extents.xOff=7220, strlen=95, calculated width=76 
DEBUG: extents.xOff=7220, strlen=95, calculated width=76

On screenshot PragmataPro:
Image icons, emoji, symbols utf-8 - works well

On this - PragmataPro Mono:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions