Thread: Clara HD Display time when reading
View Single Post
Old 11-06-2018, 02:58 AM   #88
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Quote:
Originally Posted by LucyOne View Post
I've tried a different font in the MiniClock directory, but it still doesn't work (see atttached zip file).
This is my config file, again not showing the clock in a book, only when connected to the PC:
Spoiler:

# -------------------------------------------------------------------
# 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=%H:%M

#
# Where to print the clock
#
offset_x=867
offset_y=1405

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

#
# Font Size:
#
size=3

#
# 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_format=*%a* **%b** ***%d*** %H:%M
# truetype_bold=yourfont-bold.ttf
# truetype_italic=yourfont-italic.ttf
# truetype_bolditalic=yourfont-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=contra.ttf
truetype_format=%H:%M
truetype_size=24
truetype_x=867
truetype_y=1405
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


Maybe someone could post their working configuration with a ttf font?
I can't test your font right now.
To get your cfg working you must have font into miniclock folder.
To avoid this issue put the full path
truetype=/mnt/onboard/fonts/contra.ttf
truetype=/mnt/onboard/.addons/miniclock/contra.ttf
or whatever.
Do you test another position (0,0)?
Good luck.
jcn363 is offline   Reply With Quote