Skip to content

Little tool that compares two fonts for some sample text

License

Notifications You must be signed in to change notification settings

juhp/compare-fonts

Repository files navigation

compare-fonts

Usage

$ compare-fonts --lang ja

screenshot

Uses Haskell gi-gtk-declarative.

Usage

$ compare-fonts --help

compare-fonts

Usage: compare-fonts [--version] [(-t|--text TEXT) | (-l|--lang LANG)] 
                     [-W|--width WIDTH] [-H|--height HEIGHT] 
                     [-m|--margin MARGIN] [(-1|--font1 FAMILY) | --match1 WORDS]
                     [--style1 STYLE] [(-2|--font2 FAMILY) | --match2 WORDS] 
                     [--style2 STYLE] [-S|--use-style] [-f|--use-face] 
                     [-s|--font-size SIZE] [(-w|--wrap) | (-n|--no-wrap)] 
                     [--hide-font-size]

  GUI tool to compare two fonts

Available options:
  -h,--help                Show this help text
  --version                Show version
  -t,--text TEXT           text to display
  -l,--lang LANG           sample text by language
  -W,--width WIDTH         Window width
  -H,--height HEIGHT       Window height
  -m,--margin MARGIN       Margin size [default 10]
  -1,--font1 FAMILY        1st font family
  --match1 WORDS           Match 1st font words
  --style1 STYLE           1st font style
  -2,--font2 FAMILY        2nd font family
  --match2 WORDS           Match 2nd font words
  --style2 STYLE           2nd font style
  -S,--use-style           List font styles
  -f,--use-face            Use face results rather than families
  -s,--font-size SIZE      Font size [default 24]
  -w,--wrap                Enable text wrapping
  -n,--no-wrap             Disable text wrapping
  --hide-font-size         Hide font size in FontButtons

Installation

On Fedora install ghc-gi-gtk-devel and then run cabal install.

Can also build with stack install if your Harfbuzz not too new.

About

Little tool that compares two fonts for some sample text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published