mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
graphics: Add new Freedoom font.
This replaces the old Freedoom font with a new chunky one named "Denex". I (fraggle) have split the font out into separate images for use with the textgen script, but have included the original source .pcx image here. Currently the font only includes uppercase characters and does not include smaller lowercase ones, so I've hacked the textgen script to convert all strings to uppercase before rendering. There are also no font kerning rules for the time being.
This commit is contained in:
parent
be96abfdee
commit
1ef30acfaa
118 changed files with 47 additions and 49 deletions
|
@ -41,33 +41,35 @@ import re
|
|||
# and if the font is changed this probably needs to be redone.
|
||||
|
||||
FONT_KERNING_RULES = {
|
||||
# Right character fits under left character:
|
||||
r'p[aj\.]': -3,
|
||||
r'P[a\.]': -4,
|
||||
r'[PVW][AJj\.]': -4,
|
||||
r't[ajJ\.]': -4,
|
||||
r'f[aj\.]': -2,
|
||||
# TODO: Devise some new rules for the new font.
|
||||
|
||||
# Some capital letters have overhangs that the 'lower case'
|
||||
# characters can fit under:
|
||||
r'C[Ja-z\.]': -2,
|
||||
r'F[Ja-z\.]': -3,
|
||||
r'T[Ja-z\.]': -5,
|
||||
r'W[Ja-z\.]': -2,
|
||||
r'S[Ja-z\.]': -1,
|
||||
r'V[a-z\.]': -3,
|
||||
|
||||
# Left character fits under right character:
|
||||
r'[alAL][ty479]': -3,
|
||||
r'a[vwVW]': -2,
|
||||
r'A[VW]': -3,
|
||||
r'A[vw]': -2,
|
||||
r'r[ty479]': -2,
|
||||
r'[vwVW][Aa]': -2,
|
||||
r'[Yypv][jJ]': -2,
|
||||
|
||||
# Extra space needed:
|
||||
r'[OUu][Pp]': +1,
|
||||
# # Right character fits under left character:
|
||||
# r'p[aj\.]': -3,
|
||||
# r'P[a\.]': -4,
|
||||
# r'[PVW][AJj\.]': -4,
|
||||
# r't[ajJ\.]': -4,
|
||||
# r'f[aj\.]': -2,
|
||||
#
|
||||
# # Some capital letters have overhangs that the 'lower case'
|
||||
# # characters can fit under:
|
||||
# r'C[Ja-z\.]': -2,
|
||||
# r'F[Ja-z\.]': -3,
|
||||
# r'T[Ja-z\.]': -5,
|
||||
# r'W[Ja-z\.]': -2,
|
||||
# r'S[Ja-z\.]': -1,
|
||||
# r'V[a-z\.]': -3,
|
||||
#
|
||||
# # Left character fits under right character:
|
||||
# r'[alAL][ty479]': -3,
|
||||
# r'a[vwVW]': -2,
|
||||
# r'A[VW]': -3,
|
||||
# r'A[vw]': -2,
|
||||
# r'r[ty479]': -2,
|
||||
# r'[vwVW][Aa]': -2,
|
||||
# r'[Yypv][jJ]': -2,
|
||||
#
|
||||
# # Extra space needed:
|
||||
# r'[OUu][Pp]': +1,
|
||||
}
|
||||
|
||||
white_graphics = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue