Browse Source

corrected glyphfont

master
Flo Smilari 4 years ago
parent
commit
89222dcac1
3 changed files with 5 additions and 5 deletions
  1. 3
    3
      Fraestisch_SFTools.ino
  2. 1
    1
      fonts/titillium_web_30pt7b.h
  3. 1
    1
      sloeber.ino.cpp

+ 3
- 3
Fraestisch_SFTools.ino View File

uint16_t w = 0, h = 0; uint16_t w = 0, h = 0;
for (int i = 0; i <= 99; i++) { for (int i = 0; i <= 99; i++) {
Display.clearDisplay(); Display.clearDisplay();
Display.setFont(&titillium_web_regular24pt7b);
Display.setFont(&titillium_web_semibold30pt7b);
Display.setTextSize(1); // Normal 1:1 pixel scale Display.setTextSize(1); // Normal 1:1 pixel scale
Display.setTextColor(SSD1306_WHITE); // Draw white text Display.setTextColor(SSD1306_WHITE); // Draw white text
sprintf(decimals, "%02d", i); sprintf(decimals, "%02d", i);
Display.setCursor((SCREEN_WIDTH / 2 - 1) - w, SCREEN_HEIGHT / 2 + h / 2); Display.setCursor((SCREEN_WIDTH / 2 - 1) - w, SCREEN_HEIGHT / 2 + h / 2);
Display.print("01."); Display.print("01.");
} else { } else {
calculateWH("22.", w, h);
calculateWH("77.", w, h);
Display.setCursor((SCREEN_WIDTH / 2 - 1) - w, SCREEN_HEIGHT / 2 + h / 2); Display.setCursor((SCREEN_WIDTH / 2 - 1) - w, SCREEN_HEIGHT / 2 + h / 2);
Display.print("22.");
Display.print("77.");
} }
Display.println(decimals); Display.println(decimals);
Display.display(); Display.display();

+ 1
- 1
fonts/titillium_web_30pt7b.h View File

0x80, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0xF8, 0x00, 0x3E, 0x00, 0x1F, 0x00, 0x80, 0x07, 0xC0, 0x01, 0xF0, 0x00, 0xF8, 0x00, 0x3E, 0x00, 0x1F, 0x00,
0x07, 0xC0, 0x03, 0xE0, 0x00, 0xF8, 0x00, 0x3E, 0x00, 0x1F, 0x00, 0x07, 0x07, 0xC0, 0x03, 0xE0, 0x00, 0xF8, 0x00, 0x3E, 0x00, 0x1F, 0x00, 0x07,
0xC0, 0x03, 0xE0, 0x00, 0xF8, 0x00, 0x7C, 0x00, 0x1F, 0x00, 0x0F, 0x80, 0xC0, 0x03, 0xE0, 0x00, 0xF8, 0x00, 0x7C, 0x00, 0x1F, 0x00, 0x0F, 0x80,
0x03, 0xE0, 0x01, 0xF0, 0x00, 0x3C, 0x00, 0x01, 0xFC, 0x00, 0x3F, 0xFE,
0x03, 0xE0, 0x01, 0xF0, 0x00, 0x7C, 0x00, 0x01, 0xFC, 0x00, 0x3F, 0xFE,
0x01, 0xFF, 0xFE, 0x0F, 0xFF, 0xFC, 0x7F, 0xFF, 0xF9, 0xF8, 0x07, 0xE7, 0x01, 0xFF, 0xFE, 0x0F, 0xFF, 0xFC, 0x7F, 0xFF, 0xF9, 0xF8, 0x07, 0xE7,
0xC0, 0x0F, 0x9F, 0x00, 0x3E, 0x7C, 0x00, 0xF9, 0xF0, 0x03, 0xE7, 0xC0, 0xC0, 0x0F, 0x9F, 0x00, 0x3E, 0x7C, 0x00, 0xF9, 0xF0, 0x03, 0xE7, 0xC0,
0x0F, 0x8F, 0x80, 0x7E, 0x3F, 0xFF, 0xF0, 0x7F, 0xFF, 0x80, 0xFF, 0xFC, 0x0F, 0x8F, 0x80, 0x7E, 0x3F, 0xFF, 0xF0, 0x7F, 0xFF, 0x80, 0xFF, 0xFC,

+ 1
- 1
sloeber.ino.cpp View File

//This is a automatic generated file //This is a automatic generated file
//Please do not modify this file //Please do not modify this file
//If you touch this file your change will be overwritten during the next build //If you touch this file your change will be overwritten during the next build
//This file has been generated on 2022-01-23 15:58:24
//This file has been generated on 2022-01-23 21:46:12


#include "Arduino.h" #include "Arduino.h"
#include <Arduino.h> #include <Arduino.h>

Loading…
Cancel
Save