mike-fabian / fonts-compare

fonts rendering and comparing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fonts-compare

fonts-compare is a project that allows users to compare different fonts of a specific language, based on their FontWeight, FontSize, and FontStyle. The project is designed to help users choose the best font for their needs, whether they are creating a document or designing a website. The project uses the Gtk4 toolkit and requires the installation of font packages for the specific languages users wish to work with. The project is available on Fedora Copr and can also be installed by downloading the Git repository and installing the necessary dependencies.

NOTE: fonts-compare package is compatible with all GTK versions

Logo of fonts-compare

fonts-compare

Screenshots of fonts-compare UI

fonts-compare fonts-compare-ui

Fedora Copr Repository

You can access the fonts-compare Copr repository through the following link: fonts-compare copr link

Enabling the Copr Repository

To enable the Copr repository, run the following command:

    ```
    sudo dnf copr enable sshil/fonts-compare
    ```

After enabling the Copr repository, you can install fonts-compare with the following command:

    ```
    sudo dnf install fonts-compare
    ```

If you are not using Copr, you can download the git repo and install the following packages:

    ```
    git clone https://github.com/sudipshil9862/fonts-compare.git`
    ```        
    `pip3 install langtable`
    `sudo dnf install python3-langdetect`
    `sudo dnf install gtk4`
    `sudo dnf install gtk4-devel`
    `sudo dnf install lcdf-typetools`

make sure you have pip updated pip install --upgrade pip and python devel is installed sudo dnf install python3-devel

Here is a screenshot of fonts-compare UI comparing Lohit and Noto fonts for Indic languages:

fonts-compare-lohit-vs-noto-comparison


Required Font Packages

[Please install font packages based on the languages you need to use]

  • You can install the 'ttc' package, which combines multiple font files into a single bundle, instead of manually installing each font package

  • To search for language-specific font packages, use the command: sudo dnf search any_language_name

  • You can download fonts for various languages, such as Hindi (Devanagari), Marathi, Gujarati, Odia, Tamil, Telugu, Arabic, and more, by running the following command:

      ```
      sudo dnf install @fonts
      ```
    

Get languages whose Fonts are not installed in your system

Run following commands: 

    ```
    python3 fonts_compare.py --nofonts
    ```
    or

    ```
    ./fonts_compare.py --nofonts
    ```

Debugging with Logs

You can enable debug mode to generate logs by running either of the following commands:

    ```
    python3 fonts_compare.py -d
    ```
    or
    ```
    python3 fonts_compare.py --debug
    ```

About

fonts rendering and comparing

License:GNU General Public License v2.0


Languages

Language:Python 96.6%Language:HTML 3.2%Language:Shell 0.2%