2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
frankyifei
23c963ed15 replace Droidsansfallback with NotoSansCJK-Regular 2015-09-04 00:15:12 +09:30
chrox
8d7ebaff5d add external font dir option for Android 2015-06-06 17:22:09 +08:00
chrox
3ad0ea5777 refactoring: remove dead code in font module 2015-06-02 13:19:50 +08:00
NiLuJe
3fdd90cf3b Fix a few Droid font paths 2015-04-27 22:19:11 +02:00
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.
2015-01-28 02:20:45 +08:00
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.
2015-01-25 16:52:04 +08:00
Hans-Werner Hilse
22697adf20 switch from scaleByDPI() to scaleBySize() 2014-11-23 12:13:32 +00:00
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.
2014-11-02 21:19:04 +01:00
chrox
7ce5c9c052 fix Droid Sans Fallback not registered to crengine 2014-08-23 22:46:41 +08:00
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.
2014-08-20 09:41:01 +08:00
chrox
dc911c659e adapt DroidSansFallback file name 2014-08-19 12:11:49 +08:00
chrox
b7c7287bab remove more global variables 2014-08-14 19:52:30 +08:00
NiLuJe
5ebed6655b Use Noto instead of Droid, where appropriate. 2014-07-08 02:11:17 +02:00
chrox
92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
chrox
0f61ddd01d revert main GUI font to better-looking DroidSans 2013-11-25 23:35:24 +08:00
HW
09cd5c4104 Make DEBUG a require()d local 2013-10-22 20:51:29 +02:00
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
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.
2013-10-16 12:22:53 +08:00
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.
2013-06-16 15:33:50 +08:00
Qingping Hou
1fe2e5c377 use DroidSansFallback for all major fonts
we need DroidSansFallback for internalization :)
2013-04-07 16:34:06 +08:00
Qingping Hou
2495d2c862 include dbg instead for settings for DEBUG in font.lua 2013-03-24 23:59:08 +08:00
Qingping Hou
28e5907d51 use scaleByDPI in all widgets 2013-03-15 20:03:50 -04:00
chrox
21c972a786 hide DPI dependency in Font module 2013-02-05 18:15:45 +08:00
Qingping Hou
756cce6174 use DroidSansFallback.ttf in font.lua 2012-12-13 01:40:35 +08:00
Qingping Hou
d57ac2e756 Use the font DroidSansFallbackFull.ttf in font.lua 2012-11-26 13:39:09 -05:00
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.)
2012-05-28 18:59:16 +02:00
HW
9e531fc2db file reorganisation
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
2012-05-19 01:10:57 +02:00