charityrolfson433 / android_font_patcher

Android Font Patcher for Custom Fonts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Font Patcher

Font patcher script by nongthaihoang @ xda.

Patch custom fonts to be used on Android.

What it does?

  • Fix missing glyphs.
  • Fix misaligned glyphs.
  • Fix kerning.
  • Fix ligatures.
  • Fix font name.

Requirements

  • Linux
  • Fontforge

Usage

  • Clone the repo:

    git clone https://github.com/nongthaihoang/android_font_patcher.git
    cd android_font_patcher
    
  • Rename your fonts to match styles with Roboto:

    *-<STYLE>.<extension>

    STYLE: Thin | ThinItalic | Extralight | | ExtralightItalic | Light | LightItalic | Regular | Italic | Medium | MediumItalic | SemiBold | SemiBoldItalic | Bold | BoldItalic |ExtraBold | ExtraBoldItalic | Black | BlackItalic

  • Run command:

    ./font-patcher [-cn] [FONT]...
    
        -cn  use Roboto Condensed
    

    Examples:

    ./font-patcher Lato-Regular.ttf
    
    ./font-patcher Inter-Regular.otf Lato-Bold.ttf
    
    ./font-patcher Lato/Lato-Regular.ttf
    
    ./font-patcher Lato/Lato-*
    
    ./font-patcher -cn "Barlow Condensed-Regular.ttf"
    

    For Windows (not recommended):

    fontforge.exe -script fontpatcher.pe [Roboto] [Your font] ""
    
  • The generated fonts will be named after Roboto and placed in the same folder as your fonts.

Preview

  • See how this tool works in action: video

About

Android Font Patcher for Custom Fonts

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%