Cozette Font Documentation

repository·main·Indexed 24 days ago

https://github.com/the-moonwitch/cozette

Cozette is a bitmap programming font based on Dina and inspired by Creep, optimized for coziness and terminal environments. It is available in bitmap (.otb, .dfont) and vector (.ttf) formats. Documentation covers installation on Linux (Void, Arch, General), macOS, Windows, and FreeBSD, as well as configuration for VSCode, Dmenu, and Kitty, and instructions for building from source using FontForge and Python.

Tokens
782
Snippets
5
Records
10
Agent score
37%

What's inside Cozette

  1. Build Cozette from source

    main

    To build the fonts manually, you need FontForge and Java.

    1. Clone the repository.
    2. Open Cozette/Cozette.sfd in FontForge.
    3. Select File → Generate Fonts....

    To run the release preparation scripts, you need Python (3.8+), pipenv, xorg-mkfontscale, and xterm:

    # Install dependencies and generate fonts
    pipenv install
    pipenv run python build.py fonts
    
    # Install generated fonts and generate images
    pipenv run python build.py images
    
    # View changelog between local and last tag
    pipenv run python build.py changelog
    pipenv install
    pipenv run python build.py fonts
  2. Use Cozette in Kitty

    main

    Kitty does not natively support bitmap fonts. To use Cozette, you have three options:

    1. Use a patched version of Kitty from the AUR (kitty-bitmap).
    2. Apply the Allow-bitmap-fonts.patch manually.
    3. Use the fontconfig trick: explicitly set Cozette(Vector)'s spacing to 100 and scalable to true in your font configuration.

    Alternatively, use a terminal emulator like alacritty which supports bitmap fonts natively.

  3. Install Cozette on Linux

    main

    Cozette is available in .otb (bitmap) and .ttf (vector) formats. For Linux, the preferred format is .otb for pixel-perfect rendering.

    Void Linux

    Install the .otb package using XBPS:

    sudo xbps-install font-cozette

    Arch Linux

    You can install the .otb package via the AUR using a helper like yay:

    yay -S cozette-otb

    Or manually:

    git clone https://aur.archlinux.org/cozette-otb.git
    cd cozette-otb
    makepkg -si

    General Linux

    Throw the font files into your system's fonts directory following your distribution's specific instructions. Note that Ubuntu users may need to specifically enable bitmap fonts.

    sudo xbps-install font-cozette
  4. Configure Cozette in VSCode

    main

    Using Vector Version

    Since VSCode does not support bitmap fonts, use CozetteVector in your settings.

    Fix Character Spacing

    If characters appear to have improper spacing (specifically at font size 13), adjust your settings:

    • Set terminal.integrated.letterSpacing to 1.
    • You can also use editor.letterSpacing to adjust spacing for the file editor.