Commit Graph

20 Commits (3066c86e38c8297c4c534a31c9631bb8bd6535cf)

Author SHA1 Message Date
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 10 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 :)
11 years ago
Qingping Hou 2495d2c862 include dbg instead for settings for DEBUG in font.lua 11 years ago
Qingping Hou 28e5907d51 use scaleByDPI in all widgets 11 years ago
chrox 21c972a786 hide DPI dependency in Font module 11 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.)
12 years ago
HW 9e531fc2db file reorganisation
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
12 years ago