Now that i have room, larger vulf mono font

This commit is contained in:
Ryan Rix 2023-09-26 12:15:04 -07:00
parent 1eb624c452
commit 92f8c37291
4 changed files with 28 additions and 20 deletions

View File

@ -1,6 +1,6 @@
set(FONTS jetbrains_mono_42 jetbrains_mono_76 jetbrains_mono_bold_20
jetbrains_mono_extrabold_compressed lv_font_sys_48
open_sans_light fontawesome_weathericons)
open_sans_light fontawesome_weathericons vulf_mono_italic)
find_program(LV_FONT_CONV "lv_font_conv" NO_CACHE REQUIRED
HINTS "${CMAKE_SOURCE_DIR}/node_modules/.bin")
message(STATUS "Using ${LV_FONT_CONV} to generate font files")

View File

@ -1,13 +1,9 @@
{
"jetbrains_mono_bold_20": {
"sources": [
{
"file": "Vulf_Mono-Italic.woff",
"range": "0x20-0x7e, 0xB0"
},
{
"file": "JetBrainsMono-Bold.ttf",
"range": "0x410-0x44f"
"range": "0x20-0x7e, 0xB0, 0x410-0x44f"
},
{
"file": "FontAwesome5-Solid+Brands+Regular.woff",
@ -17,6 +13,16 @@
"bpp": 1,
"size": 20
},
"vulf_mono_italic": {
"sources": [
{
"file": "Vulf_Mono-Italic.woff",
"range": "0x20-0x7e, 0xB0"
}
],
"bpp": 1,
"size": 30
},
"jetbrains_mono_42": {
"sources": [
{

View File

@ -36,7 +36,7 @@ WatchFaceFuzzy::WatchFaceFuzzy(Controllers::DateTime& dateTimeController,
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 0);
label_time = lv_label_create(lv_scr_act(), nullptr);
lv_obj_set_style_local_text_font(label_time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &jetbrains_mono_bold_20);
lv_obj_set_style_local_text_font(label_time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &vulf_mono_italic);
lv_obj_align(label_time, lv_scr_act(), LV_ALIGN_IN_LEFT_MID, 0, -20);
lv_label_set_recolor(label_time, true);

View File

@ -10,6 +10,8 @@
#include "displayapp/widgets/StatusIcons.h"
#include "utility/DirtyValue.h"
extern lv_font_t vulf_mono_italic;
namespace Pinetime {
namespace Controllers {
class Battery;