Skip to content

When you're rendering images as text, but the traditional palette of ".,-=#" is no longer enough, this program generates larger such alphabets optimized for a specific font and font size.

Notifications You must be signed in to change notification settings

JohnDorsey/PyLuminosityAlphabet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requires pygame

This program internally renders characters into one image each, and uses these images to sort all of the characters by order of their actual luminosity.

The resulting alphabets are ideal for their specified font, font size, and antialiasing setting.

FontProfile excludes non-monospace characters by default.

usage:

import PyLuminosityAlphabet as pla

fontProfile = pla.FontProfile(<full path of target font>, <font size>)

alphabet = fontProfile.get_alphabet_str()

print(alphabet)
fontProfile.preview(alphabet)

About

When you're rendering images as text, but the traditional palette of ".,-=#" is no longer enough, this program generates larger such alphabets optimized for a specific font and font size.

Topics

Resources

Stars

Watchers

Forks

Languages