mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
working on sorting out OLED fonts
This commit is contained in:
BIN
user_program/ChiKareGo2.ttf
Normal file
BIN
user_program/ChiKareGo2.ttf
Normal file
Binary file not shown.
BIN
user_program/ProggyTiny.ttf
Normal file
BIN
user_program/ProggyTiny.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/ChiKareGo.ttf
Normal file
BIN
user_program/fonts/ChiKareGo.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/FreeMono.ttf
Normal file
BIN
user_program/fonts/FreeMono.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/FreeMonoBold.ttf
Normal file
BIN
user_program/fonts/FreeMonoBold.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/FreeMonoBoldOblique.ttf
Normal file
BIN
user_program/fonts/FreeMonoBoldOblique.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/FreeMonoOblique.ttf
Normal file
BIN
user_program/fonts/FreeMonoOblique.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/FreePixel.ttf
Normal file
BIN
user_program/fonts/FreePixel.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/FreeSans.ttf
Normal file
BIN
user_program/fonts/FreeSans.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/ProggyClean.ttf
Normal file
BIN
user_program/fonts/ProggyClean.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/ProggyTiny.ttf
Normal file
BIN
user_program/fonts/ProggyTiny.ttf
Normal file
Binary file not shown.
96
user_program/fonts/README [INET].txt
Normal file
96
user_program/fonts/README [INET].txt
Normal file
@@ -0,0 +1,96 @@
|
||||
+#######################################+
|
||||
# #
|
||||
# C&C: Red Alert [Internet] (TrueType) #
|
||||
# Version 1.002 #
|
||||
# Built 2008-02-06 #
|
||||
# #
|
||||
# Created by N3tRunn3r #
|
||||
# #
|
||||
+#######################################+
|
||||
|
||||
|
||||
+###############+
|
||||
# #
|
||||
# INFORMATIONS #
|
||||
# #
|
||||
+###############+
|
||||
|
||||
Do you know the fonts of the Command & Conquer classics such as C&C: Red Alert?
|
||||
My plans were to firstly re-create these fonts for a personal use, for my C&C website and later for the C&C community.
|
||||
|
||||
Today I want to provide you with these fonts!
|
||||
|
||||
My "C&C: Red Alert [Internet] (TrueType)" font is a minifont or also called as a pixelfont.
|
||||
Pixelfonts are very small but in a way amazingly beautiful looking and fascinating fonts.
|
||||
|
||||
These kind of fonts are mostly best by using them in sizes between 8pt and 12pt.
|
||||
It depends by their developer's thoughts and usage.
|
||||
|
||||
I personally commend using my C&C: Red Alert fonts in a size of 10pt!
|
||||
This size is also the original one which is used within Command & Conquer and C&C: Red Alert.
|
||||
|
||||
This "C&C: Red Alert [Internet] (TrueType)" font is that one being used inside the C&C: Red Alert Internet lobby.
|
||||
Some character additions and updates to my fonts were done as well.
|
||||
|
||||
Please notice that a lot of signs, symbols, and special characters are still missing, but will be added in future.
|
||||
|
||||
|
||||
+#######################+
|
||||
# #
|
||||
# HOW-TO INSTALL #
|
||||
# #
|
||||
+#######################+
|
||||
|
||||
1.) Extract "C&C Red Alert [INET].ttf" out of this ZIP file, preferred is onto your Desktop
|
||||
2.) Right-click this ttf-file and select "Install"
|
||||
3.) Windows is now going to install this font on your machine
|
||||
|
||||
|
||||
+###############+
|
||||
# #
|
||||
# DISCLAIMER #
|
||||
# #
|
||||
+###############+
|
||||
|
||||
MY C&C: RED ALERT FONTS ARE 100% FREEWARE AND SO ABSOLUTELY FREE-TO-USE FOR YOUR PERSONAL AND/OR COMMERCIAL USE!!
|
||||
IF YOU RUN A FONT-RELATED WEBSITE AND WOULD LIKE TO OFFER MY FONTS THERE, GO RIGHT AHEAD!!
|
||||
KEEP THIS README.TXT FILE WITH MY SPECIFIC FONTS INTACT TO PROVE THEIR ORIGINAL EXTRACTION!!
|
||||
|
||||
YOU ARE "NOT" ALLOWED TO SELL AND/OR DISTRIBUTE MY FONTS FOR PROFIT!!
|
||||
YOU ARE "NOT" ALLOWED TO ALTER AND/OR MODIFY MY FONTS AND THEIR SOURCE CODES!!
|
||||
YOU ARE "NOT" ALLOWED TO CLAIM THE FONT'S EXTRACTION!!
|
||||
|
||||
THESE FONTS WERE CREATED BY N3TRUNN3R
|
||||
|
||||
|
||||
+#######################+
|
||||
# #
|
||||
# ADDITIONAL INFO #
|
||||
# #
|
||||
+#######################+
|
||||
|
||||
If you like to know some latest news about my fonts and/or have any questions about them, so contact me at:
|
||||
|
||||
n3trunn3r@hotmail.de
|
||||
|
||||
My website is currently offline and under maintenance. It will go back online in future.
|
||||
|
||||
|
||||
Command & Conquer and Command & Conquer: Red Alert are still popular RTS games, developed by Westwood.
|
||||
Both games were released in year 1995 and 1996.
|
||||
|
||||
Are you interested into playing the C&C classics online? Visit:
|
||||
|
||||
www.CNC-COMM.com
|
||||
www.CNCNET.org
|
||||
|
||||
and
|
||||
|
||||
www.CNC-ONLINE.net
|
||||
|
||||
|
||||
Have fun, and that's an order! :)
|
||||
|
||||
|
||||
BEST REGARDS,
|
||||
N3
|
||||
BIN
user_program/fonts/Volter__28Goldfish_29.ttf
Normal file
BIN
user_program/fonts/Volter__28Goldfish_29.ttf
Normal file
Binary file not shown.
11014
user_program/fonts/creep.bdf
Normal file
11014
user_program/fonts/creep.bdf
Normal file
File diff suppressed because it is too large
Load Diff
BIN
user_program/fonts/fontawesome-webfont.ttf
Normal file
BIN
user_program/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/miscfs_.ttf
Normal file
BIN
user_program/fonts/miscfs_.ttf
Normal file
Binary file not shown.
BIN
user_program/fonts/pixelmix.ttf
Normal file
BIN
user_program/fonts/pixelmix.ttf
Normal file
Binary file not shown.
@@ -12,19 +12,37 @@ device = get_device(my_arg)
|
||||
"""
|
||||
OLED for USB4VC
|
||||
128*32
|
||||
command&conquer ttf font, 12 point
|
||||
3 lines, y=0, 10, 20
|
||||
up to 20 characters per line
|
||||
|
||||
3 font sizes available, regular/large: ProggyTiny.ttf, medium: ChiKareGo2.ttf.
|
||||
|
||||
regular ProggyTiny:
|
||||
16 point, 3 lines, y=0, 10, 20
|
||||
|
||||
large type ProggyTiny
|
||||
32 point, 2 lines (1 large + 1 regular), y=0, 20
|
||||
|
||||
medium type ChiKareGo2:
|
||||
16 point, 2 lines, y=0, 15
|
||||
|
||||
characters per line:
|
||||
regular font: 21
|
||||
large font: 11
|
||||
|
||||
int(sys.argv[1])
|
||||
ssh pi@192.168.1.56 "pkill python3;cd ~/usb4vc;python3 usb4vc_oled.py 16"
|
||||
|
||||
"""
|
||||
|
||||
font_path = "cc.ttf"
|
||||
font2 = ImageFont.truetype(font_path, 24)
|
||||
font_regular = ImageFont.truetype("ProggyTiny.ttf", 16)
|
||||
font_medium = ImageFont.truetype("ChiKareGo2.ttf", int(sys.argv[1]))
|
||||
font_large = ImageFont.truetype("ProggyTiny.ttf", 32)
|
||||
|
||||
while 1:
|
||||
with canvas(device) as draw:
|
||||
draw.rectangle(device.bounding_box, outline="white", fill="black")
|
||||
draw.text((0, 0), "USB4VC", font=font2, fill="white")
|
||||
# draw.text((0, 0), "888888888877777777776666666666", font=font2, fill="white")
|
||||
# draw.text((0, 10), "ABCDEFGHIJ", font=font2, fill="white")
|
||||
# draw.text((0, 20), "abcdefghij", font=font2, fill="white")
|
||||
# draw.rectangle(device.bounding_box, outline="white", fill="black")
|
||||
draw.text((0, 0), "No input devices", font=font_medium, fill="white")
|
||||
draw.text((0, 16), "Connect via USB", font=font_regular, fill="white")
|
||||
# draw.text((0, 0), "123456789012345678901234567890", font=font_regular, fill="white")
|
||||
# draw.text((0, 10), "ABCDEFGHIJ", font=font_regular, fill="white")
|
||||
# draw.text((0, 20), "abcdefghij", font=font_regular, fill="white")
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user