PINETIME WATCHFACE BOLD

A simple, BOLD watchface for PineTime / InfiniTime: source code (on BitBucket).

I wrote my own watchface, and replaced the 'PineTimeStyle' watchface with my new one. The code repo linked, above, just has the files that define my new watchface - you'll need to do your own integration into the InfiniTime repo (I used the Docker version of the project to build my watchface).

Whilst you should be able to recreate my watchface using the information on this page (including the code repo linked, above), the purpose of the page is more to inspire you to build your own thing, and give you a few tips to get yourself started. It should also be noted that I'm not a C++ developer - hopefully you won't find my code too offensive! ;-)

PineTime BOLD: Night mode
PineTime BOLD: Night mode
PineTime BOLD: Day mode
PineTime BOLD: Day mode
PineTime BOLD: Final version, installed
PineTime BOLD: Final version, installed

Design Goals

Fonts

The screenshots, above, do not show the font I used for the day/date text (OCR-A, size 28). Unfortunately I have no authority to distribute the font I used - you'll need to drop your own copy of the font into the project ('src/displayapp/fonts/'), and then declare it inside 'src/libs/lv_conf.h' (add your font below the line "LV_FONT_DECLARE(lv_font_sys_48)").

More info about font stuff

Summary of Changes to InfiniTime Repo

New files: src/displayapp/fonts/OCRA.ttf; src/displayapp/screens/WatchFaceBold.cpp; src/displayapp/screens/WatchFaceBold.h

Modified files: src/CMakeLists.txt; src/displayapp/screens/Clock.cpp; src/displayapp/screens/Clock.h; src/displayapp/screens/settings/SettingWatchFace.h; src/libs/lv_conf.h

Changes to existing InfiniTime files:

In the following files...

... replace the string "PineTimeStyle" with "Bold"

In 'src/displayapp/screens/Clock.cpp' remove the "motionController" parameter from the end of the "std::make_unique<Screens::WatchFaceBold>()" function signature.

InfiniTime 1.10.0

As of this release, font management stuff has been improved - no need to 'compile' your own fonts any more. To include the OCR-A font we now drop the .TTF into the 'src/displayapp/fonts/' folder, and add our font into:

'src/displayapp/fonts/fonts.json':

 "ocra_28": {
 "sources": [
 {
 "file": "OCRA.ttf",
 "range": "0x20-0x7e"
 }
 ],
 "bpp": 1,
 "size": 28
 },

'src/displayapp/fonts/CMakeLists.txt':

set(FONTS jetbrains_mono_42 
ocra_28
 jetbrains_mono_76...

'src/libs/lv_conf.h':

...
LV_FONT_DECLARE(jetbrains_mono_42) \
LV_FONT_DECLARE(ocra_28) \
LV_FONT_DECLARE(jetbrains_mono_76) \
...

Creative Commons License

All PineTime Watchface BOLD assets by Chris Molloy are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.