Jump to content

Recommended Posts

Posted

Hello,

 

because a few people asked me if I would share my font from the UFC, I have the font here for you to download.

You need the U8g2 library for this. If I have a little time left, I'll make a video of how I created the font and how to insert it correctly.

 

Have fun with it...

 

Sky

u8g2_fonts.zip

Posted

Absolutely fantastic!

Phanteks EvolvX / Win 11 / i9 12900K / MSI Z690 Carbon / MSI Suprim RTX 3090 / 64GB G.Skill Trident Z  DDR5-6000 / 1TB PCIe 4.0 NVMe SSD / 2TB PCIe 3.0 NVMe SSD / 2TB SATA SSD / 1TB SATA SSD / Alphacool Eisbaer Aurora Pro 360 / beQuiet StraightPower 1200W

RSEAT S1 / VPC T50 CM2 + 300mm extension + Realsimulator F18 CGRH / VPC WarBRD + TM Warthog grip / WinWing F/A-18 Super Taurus + F-15EX / 4x TM Cougar MFD / Slaw Device RX Viper V3 / HP Reverb G2

Posted

That’s just beautiful.

 

BTW, I’m getting encoding errors with the fonts file. Is it a windows encoded file ?

 

 

Sent from my iPhone using Tapatalk

Posted

Very nicely done.

Intel i9 14900K @5.5 MHz, 64GB DDR 5 RAM at 6000 MHz, RTX4090, Pimax Crystal HMD, HOTAS: Winwing F16EX / Orion 2 Throttle base / Top Gun MIP / F-16 ICP setup.

Genetrix JetSeat on a DOF Reality P6, 6 axis Motion Platform

DCS 8166.jpg

Posted (edited)
That’s just beautiful.

 

BTW, I’m getting encoding errors with the fonts file. Is it a windows encoded file ?

 

 

Sent from my iPhone using Tapatalk

 

I‘m using Windows. Encodet is the font by a converter.

The font is handmade, converted and then inserted into the U8g2 library. There are 3 different fonts for the UFC. The scratch display already needs 2 different fonts.

 

Ähh... Wow. How does your ADI work?

 

I make a video showing and explaining everything. But it still takes a little while, I have to finish the project first. It is not yet certain that the construction will stay that way.

 

Sky

Edited by SkyJunky
Posted

After a couple private messages I solved the encoding error and we solved the compilation errors.

 

To use the fonts your best bet is to use a script editor such as textwrangler to open the u8g2_fonts.c file. Copy the last 4 fonts (the ones that have dcs in the name) and paste those into a new utf8 text file which you then save as hornet_fonts.h (or whichever name you prefer).

 

Then in your sketch, where you plan to use the fonts, paste this on one of the first couple lines:

#include "hornet_fonts.h"

 

I have that right after

#include "U8g2lib.h" 

 

Now your sketch should compile just fine.

As an example I've attached a picture of what the code below does:

     tcaselect(2);
     OLED_3.setFont(u8g2_DcsFont_tf);
     OLED_3.clearBuffer(); // clear the internal memory
     OLED_3.drawStr(01, 32, ":ATTH");
     OLED_3.sendBuffer(); // transfer internal memory to the display

     tcaselect(3);
     OLED_4.setFont(u8g2_DcsFontHornet4_tf);
     OLED_4.clearBuffer(); // clear the internal memory
     OLED_4.drawStr(01, 32, " RALT");
     OLED_4.sendBuffer(); // transfer internal memory to the display
          
     tcaselect(5);
     OLED_6.setFont(u8g2_DcsFontHornet3_tf);
     OLED_6.clearBuffer(); // clear the internal memory
     OLED_6.drawStr(01, 38, " BALT");
     OLED_6.sendBuffer(); // transfer internal memory to the display

 

 

ESBoRpnXUAIenbg?format=jpg&name=large

 

my 2cts. thanks again to Sky!

cheers

  • 2 weeks later...
Posted

Hey everyone,

 

I attach a new version of the UFC font for the Hornet. I fixed a couple of problems. Now everything should work again. If there is still a mistake, please tell me so that I can fix it.

 

You need Hornet2 and Hornet4 for the scratch display and Hornet3 for the option displays.

 

 

Greetings Sky

UFC Font.zip

Posted
What if the difference between the 2 files inside?

 

 

You just need the 4 last fonts in the big file.

 

The changes are mainly this:

 

6a45f41ccc871856832b5361693d0853.jpg

 

changed to this

 

263aa3c44af1d602859043d89d387fff.jpg

 

 

Sent from my iPhone using Tapatalk

Posted

You need both files to use the UFC font. The UFC fonts are in the fonts.c and the fonts are called in the other file. You can also insert the required lines from this files into your files.

 

Sky

Posted

Thx skyjunky and longuich. It works on my test oled display ssd1306 i2c.

I have a question about the oled display on your picture Longuich: is it a 2.23 oled display ssd1305? Are you using I2C or SPI ?

Posted

Hey bugz,

 

It is a 2.23 sd1305 i found on amazon.

I prefer i2c for its simplicity and all my other displays are. But this is an SPI version. It’s supposed to be able to do i2c as well but I don’t really fancy desoldering tweezer size resistors.

 

Cheers!

 

 

Sent from my iPhone using Tapatalk

Posted (edited)

So You keep it as SPI . Im not sure about define line for the display with u8g2 library. Which one did you choose?

Edited by Bugz
Posted (edited)

for the 223:

 

U8G2_SSD1305_128X32_NONAME_F_4W_HW_SPI ScrPad(U8G2_R0, /* cs=*/ 10, /* dc=*/ 7, /* reset=*/ 6);

 

the other (i2c) displays:

U8G2_SSD1306_64X32_1F_F_HW_I2C OLED_2(U8G2_R3, /* reset=*/ U8X8_PIN_NONE);
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C OLED_3(U8G2_R0, /* reset=*/ U8X8_PIN_NONE, /* clock=*/ SCL, /* data=*/ SDA); 

 

I'm using them with a teensy board. Not arduino.

Edited by longuich
  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...