Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
8 years ago
Qingping Hou
3c647ff244
minor: various luacheck fixes
9 years ago
Qingping Hou
e410ce14df
doc: types/functions for font and rendertext module
9 years ago
Qingping Hou
d7879db90f
font: add default font size
9 years ago
chrox
55ba1450d4
code refactoring: use hash table index instead of loop
9 years ago
frankyifei
86d6d46770
add isKindle check
9 years ago
frankyifei
1f14a9e80d
try to exclude those broken system fonts
...
these fonts can not be used by freetype and will cause hang up
9 years ago
Qingping Hou
cdd17906f6
refactor: ui/font:getFace
9 years ago
frankyifei
23c963ed15
replace Droidsansfallback with NotoSansCJK-Regular
9 years ago
chrox
8d7ebaff5d
add external font dir option for Android
9 years ago
chrox
3ad0ea5777
refactoring: remove dead code in font module
9 years ago
NiLuJe
3fdd90cf3b
Fix a few Droid font paths
10 years ago
chrox
a40c172c47
fix mupdf rendering caused by FONTDIR env var
...
It turns out that one of our mupdf patch reads the FONTDIR env var
and uses it in a totally different way so we will use another env var
EXT_FONT_DIR to define external font directory for different platforms.
10 years ago
chrox
077517be0b
add FONTDIR env variable
...
to support custom font directory for EPUB documents
Now Koreader could find fonts in the "fonts" directory in the USB root
directory of kindle, Kobo and PocketBook devices, thus no need to copy
fonts to "koreader/fonts" directory.
10 years ago
Hans-Werner Hilse
22697adf20
switch from scaleByDPI() to scaleBySize()
10 years ago
Hans-Werner Hilse
3066c86e38
Refactoring hardware abstraction
...
This is a major overhaul of the hardware abstraction layer.
A few notes:
General platform distinction happens in
frontend/device.lua
which will delegate everything else to
frontend/device/<platform_name>/device.lua
which should extend
frontend/device/generic/device.lua
Screen handling is implemented in
frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.
The same goes for input handling.
10 years ago
chrox
7ce5c9c052
fix Droid Sans Fallback not registered to crengine
10 years ago
chrox
56fa8a45b7
remove rescaleByDPI since it's not reversible
...
alternatively we store the original size before scaling by screen DPI
and use that value when needed.
10 years ago
chrox
dc911c659e
adapt DroidSansFallback file name
10 years ago
chrox
b7c7287bab
remove more global variables
10 years ago
NiLuJe
5ebed6655b
Use Noto instead of Droid, where appropriate.
10 years ago
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
11 years ago
chrox
0f61ddd01d
revert main GUI font to better-looking DroidSans
11 years ago
HW
09cd5c4104
Make DEBUG a require()d local
11 years ago
HW
ef111b99c6
Refactored to use strictly locals
11 years ago
chrox
3f3e434157
rescale font size when fallbacks to fallback fonts
...
and make FreeSerif font the default font instead of DroidSansFallback
This patch should fix #272 .
11 years ago
chrox
bbfa6428aa
add glyph fallbacks
...
if glyph is not found in specified fontface, fallback fonts are checked
on by one until a glyph is found.
11 years ago
Qingping Hou
1fe2e5c377
use DroidSansFallback for all major fonts
...
we need DroidSansFallback for internalization :)
12 years ago
Qingping Hou
2495d2c862
include dbg instead for settings for DEBUG in font.lua
12 years ago
Qingping Hou
28e5907d51
use scaleByDPI in all widgets
12 years ago
chrox
21c972a786
hide DPI dependency in Font module
12 years ago
Qingping Hou
756cce6174
use DroidSansFallback.ttf in font.lua
12 years ago
Qingping Hou
d57ac2e756
Use the font DroidSansFallbackFull.ttf in font.lua
12 years ago
HW
60ccd7441e
fixed menu info displaying, replaced debug() by DEBUG()
...
the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
13 years ago
HW
9e531fc2db
file reorganisation
...
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
13 years ago