Commit Graph

24 Commits (c7b4cf71f808a40d2461bac4e02bf8d2d4127327)

Author SHA1 Message Date
Tigran Aivazian c7b4cf71f8 Fix the kerning logic in text size/rendering.
1. Fix the functions sizeUtf8Text(), renderUtf8Text() and
renderUtf8TextWidth() to have a meaningful test whether to kern or not
(the current code is meaningless as it contains the `else` clause that is never
executed).
2. Whitespace changes to filechooser.lua
12 years ago
NuPogodi 20fae9369e Update rendertext.lua
Minor modification in function renderUtf8Multiline(...) to solve Issue #214
12 years ago
HW 0d12ff70cd rename debug() to Debug() to stop clashing with the debug submodule from Lua 12 years ago
HW e35339a398 fixed wrong escape sequences in strings
again, LuaJIT will choke on these, Lua-5.1.n did just ignore them
12 years ago
HW 4d2036fa7b bugfix for #185, close #185 12 years ago
Dobrica Pavlinusic 9de055eb5d fix glymp caching name
With recent changes in font selector, we where hitting
glyphcache_max_memsize so glyphcache[k].glyph.bb:free() got
invoked and crashed reader.
12 years ago
NuPogodi cd046a0637 Update rendertext.lua 12 years ago
Qingping Hou 8d74649642 adjust wording 12 years ago
Qingping Hou 3306346dba use debug to print debug info 12 years ago
traycold 429f572827 modification to take into account new version of mupdf 12 years ago
traycold 02dd9b023f Merge remote branch 'hwhw/master'
* hwhw/master: (183 commits)
  show infomessage on document open
  use InfoMessage for empty TOC, jump history and highlights
  copy resources dir on customupdate
  add resource: info icon
  display document open error message
  added infomessage dialog implementation
  bugfix, removed old test constant
  Added widget abstraction framework
  added interface to get blitbuffers from JPEG/PNG files
  fix typo
  added reading of pan_margin settings
  fix full screen refresh command, close #99
  add: sleep and usleep in util module
  fix: add back KEY_FW{LEFT,RIGHT} commands to NumInputBox
  reverted removal of last-doc shortcut, introduced framework restart
  kill our own child process. not quite finished.
  added line spacing setting for crereader
  remove page:getPageText debug dump to improve performance on device
  remove page:getPageText debug dump to improve performance on device
  display crash.log on error
  ...

Conflicts:
	ft.c
	helppage.lua
	inputbox.lua
	rendertext.lua
	rendertext_example.lua
	unireader.lua
12 years ago
traycold 6c9ec8c896 refactoring for display help page 12 years ago
HW ec2eda0c05 switched font handling to only work with external fonts
now you can use a environment variable, FONTDIR, to point
to a font dir. Otherwise, "./fonts" is used by default.
Subdirectories are indexed.
12 years ago
traycold ce30d9c652 use font metric to better display help page (to exted to other pages in future) 12 years ago
traycold 81f99e4921 Merge remote branch 'origin/master' into txt
* origin/master:
  using font module for getting fonts (commit f95231d789)
  Password input, handling for broken documents
  factored pages count out, better error and password handling
  factored pages counter out of document struct
  make muPDF cache size configurable from Lua
  add XPS and CBZ support (muPDF provides this)
  fixed bug for odd rendering widths
  refactored muPDF integration to use strictly the fitz.h API
  forgot Makefile change when factoring out drawcontext
  fix a Lua 5.0 syntax that was deprecated in 5.1
  separate DC out of pdf.c and djvu.c (cleanup)
  removed obsolete page rotation handling, closes #70
  allow easier customization of toolchain for libdjvu
  fix: remove page number checking in displaying TOC
  fix: handle LPGBCK and LPGFWD in selectmenu
12 years ago
traycold bfcad367bb using font module for getting fonts (commit f95231d789)
renamed function names using camelCase (issue #62)
12 years ago
traycold c11ecce55a draft commit, test implementation 12 years ago
traycold 943b511b7c complete implementation of issue #55
created a help page
12 years ago
Dobrica Pavlinusic c470c0328a renderUtf8Text shouldn't die witout a text
this is exposed by #38 and #40
12 years ago
HW affc3b231a major overhaul of the code structure, more OO like 13 years ago
HW f739baff5f moved blitting over to blitbuffer API
the framebuffer "object" now has a "member" that exposes the blitbuffer
API for the framebuffer pixmap. This allows to reuse blitting & Co for
blitbuffer-to-blitbuffer operations
13 years ago
HW a02ae3a460 Added kerning for rendering text 13 years ago
HW b38b75298a fixed blitting for uneven horizontal offsets/dests 13 years ago
HW f307264fb6 added freetype text rendering (still buggy)
this allows to render glyphs and also brings a simple
engine for rendering UTF-8 strings onto the framebuffer.
blitting to uneven offset is implemented here, too, but
needs more work and is still buggy.

In the end, this will allow for a simple GUI.
13 years ago