Skip to content

TobseF/Emoji-Font-to-SVG-Extractor

Repository files navigation

😁 🔀 Font emoji to SVG / PNG Extractor

💡 Extracts svg or png files for every font symbol. Simple letters will be skipped.

This Python script reads an installed system font and converts every symbol to an SVG file.
Optional, all SVG files can be converted to PNG. It uses the Inkscape CLI for conversion.
The selection of symbols can be configured with the symbol-table.csv. It's configured to only export colorful symbols.

⭐ Features

⭐ Batch Processing of all emoji
⭐ Convert to SVG or PNG
⭐ Grouping by category (Animals, Food, Objects)
⭐ Cuts of empty space
⭐ Tested on Windows

🛠 Setup

  • Install Inkscape version 1.0 or later.
  • Install Python version 3.6 or later.
  • Configure inkscape_path in the script.

🚀 Run

To export all emoji svg run:

python export-all-emoji.py

To convert all exported svg file to png run:

python convert-to-png.py

🛠 Config

  • inkscape_path: Path to your Inkscape installation.
  • font: Font to export. For example "Segoe UI Emoji".
  • dpi: Change the png resolution.
  • outDir: Output directory.
  • debug: Enable to also print all console commands.

About

😁 🔀 Extract svg or png files for every font symbol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages