Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juhp/compare-fonts
Little tool that compares two fonts for some sample text
https://github.com/juhp/compare-fonts
Last synced: 8 days ago
JSON representation
Little tool that compares two fonts for some sample text
- Host: GitHub
- URL: https://github.com/juhp/compare-fonts
- Owner: juhp
- License: gpl-3.0
- Created: 2022-12-16T06:33:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-31T09:19:55.000Z (8 days ago)
- Last Synced: 2024-10-31T10:21:30.585Z (8 days ago)
- Language: Haskell
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# compare-fonts
## Usage
```shellsession
$ compare-fonts --lang ja
```![screenshot](compare-fonts.png)
Uses Haskell
[gi-gtk-declarative](https://hackage.haskell.org/package/gi-gtk-declarative).## Usage
`$ compare-fonts --help````
compare-fontsUsage: 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.