Git Product home page Git Product logo

pycharmap's Introduction

demo

Unicode Glyph Checker

This Python script allows you to check and display all available glyphs in a given font file. It provides information about each glyph, including its Unicode code point, character representation, and name.

Features

  • Loads and analyzes TrueType (.ttf) and OpenType (.otf) font files
  • Displays a list of all available glyphs in the font
  • Shows Unicode code point, character, and name for each glyph
  • Provides a total count of available glyphs

Requirements

  • Python 3.6+
  • fonttools library
  • bdflib

Installation

  1. Clone this repository or download the pycharmap-unicode.py file.

  2. Install the required library:

pip install fonttools

Usage

Run the script from the command line, providing the path to the font file as an argument:

python pycharmap-unicode.py <font_file_path>

For example:

python pycharmap-unicode.py Monocraft.ttf

Output

The script will display a list of all available glyphs in the following format:

========================================
U+0020 |   | SPACE
U+0021 | ! | EXCLAMATION MARK
U+0022 | " | QUOTATION MARK
...
========================================
Total available glyphs: X

Where:

  • U+XXXX is the Unicode code point
  • The character between | symbols is the glyph itself
  • The text after the second | is the Unicode name of the character

Note

Some characters may not display correctly in your terminal if it doesn't support them or if you're using a font that doesn't include those glyphs.

pycharmap's People

Contributors

slovjinika avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.