Thread: Clara HD Display time when reading
View Single Post
Old 11-05-2018, 09:57 PM   #83
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,857
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Ok I have this working for the non ttf fonts, but I can not get it working for ttf with NotoSerif

My config file

# -------------------------------------------------------------------
# MiniClock config example file. For settings to take any effect,
# copy or rename this file to .addons/miniclock/miniclock.cfg.
# -------------------------------------------------------------------

#
# To uninstall, set to 1
#
uninstall=0

#
# Date format string ( see 'man strftime' )
#
format=%I:%M%p

#
# Where to print the clock
#
offset_x=610
offset_y=18

#
# Font: (IBM, UNSCII, ALT, THIN, FANTASY, MCR, TALL, BLOCK,
# LEGGIE, VEGGIE, KATES, FKP, CTRLD, ORP, ORPB, ORPI,
# SCIENTIFICA, SCIENTIFICAB, SCIENTIFICAI)
#
font=UNSCII

#
# Font Size:
#
size=03

#
# Color: (BLACK GRAY{1-9A-E} WHITE)
#
fg_color=BLACK
bg_color=WHITE

#
# TrueType support:
#
# For fonts inside the MiniClock directory:
# truetype=yourfont.ttf
#
# For fonts stored elsewhere in the filesystem:
# truetype=/mnt/onboard/fonts/something.ttf
#
# Only set these if you use *italic*, **bold**, ***bold italic*** in your format string:
#
# truetype_bold=/mnt/onboard/fonts/NotoSerif-Regular.ttf
truetype_format=***%I:%M%p***
# truetype_bold=/mnt/onboard/fonts/NotoSerif-Bold.ttf
# truetype_italic=/mnt/onboard/fonts/NotoSerif-Italic.ttf
truetype_bolditalic=/mnt/onboard/fonts/NotoSerif-BoldItalic.ttf
#
# Technically, this can also be used for completely different font styles,
# instead of italic or bold variants of the same font.
#
# NOTE: Will fall back to regular mode when font file is unavailable.
# (e.g. while the device is connected to USB)
#
truetype_size=16
truetype_x=610
truetype_y=18
truetype_fg=BLACK
truetype_bg=WHITE

#
# Update frequency: (update once every 60 seconds)
#
update=60

#
# Delay: (update 1 second after touch)
#
delay=1

#
# Repeat: (repeat update 3 times)
#
repeat=3

#
# NightMode support:
#
nightmode_file=/mnt/onboard/.kobo/nightmode.ini
nightmode_key=invertActive
nightmode_value=yes
MGlitch is offline   Reply With Quote