summaryrefslogtreecommitdiff
path: root/framebuffer/fbtk/text.c
Commit message (Collapse)AuthorAgeFilesLines
* Add Unicode support to internal font.Michael Drake2014-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Now contains more glpyhs (was previously limited to cp-1252). + When a glyph is unavailable, the codepoint is now rendered. + Added glyph data file. + Added converter to generate the font's .c file from the data. TODO: The generated file is currently checked into the repo, but it should be generated as part of the build process, in the build-* directory. To update the generated source file, first build the converter: $ gcc -O2 -Wall framebuffer/convert_font.c -lm \ -o build-Linux-framebuffer/tools/convert_font And then use it to generate the souce file: $ build-Linux-framebuffer/tools/convert_font \ framebuffer/res/fonts/glyph_data \ framebuffer/GEN_font_internal.c -v The converter's usage is: convert_font [options] <in_file> <out_file> See convert_font --help for more details.
* Register destruction callback to free text widget text.Michael Drake2013-10-231-0/+24
|
* FONT_SIZE_SCALE is for preserving fractional parts, so use it properly.Michael Drake2013-08-291-1/+1
|
* Ensure text is at the right height for Freetype and Internal fonts.Michael Drake2012-08-081-1/+6
|
* Use enum instead of magic numbers for tracking key modifier states. Pass ↵Michael Drake2012-08-011-12/+12
| | | | special keys to core (e.g. WORD_LEFT, SELECT_ALL, etc).
* Scroll text in writable text widget so caret is always in view.Michael Drake2012-08-011-16/+19
|
* Only writable text widget needs caret rendering.Michael Drake2012-08-011-18/+0
|
* Handle CTRL modifier too. CTRL with cursor left/right is same as SHIFT. ↵Michael Drake2012-07-311-0/+29
| | | | CTRL+U clears writable.
* Cursor left/right keys plus modifier move caret to extrems.Michael Drake2012-07-311-6/+15
|
* Factor out some repeated code.Michael Drake2012-07-311-23/+10
|
* Make text input widget remove caret on "strip focus" event.Michael Drake2012-07-311-2/+17
|
* When a text input widget has its text set, and it has the caret, move the ↵Michael Drake2012-07-311-0/+21
| | | | caret to the end.
* Claim, position, and render caret in text input widget. Currently does not ↵Michael Drake2012-07-311-38/+156
| | | | remove caret when input widget is stripped of focus (because widget doesn't know).
* Remove strlen from redraw functions.Michael Drake2012-07-311-2/+2
|
* Add support for editing text input widget contents from arbitrary position ↵Michael Drake2012-07-311-11/+31
| | | | in string (instead of just end).
* Split out common code to generate a font style for text input widget.Michael Drake2012-07-311-13/+15
|
* Remove plotter table global. Pass a redraw context around redraw functions. ↵Michael Drake2011-06-301-3/+3
| | | | | | Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543
* add control of fbtk text widget paddingVincent Sanders2011-03-211-10/+11
| | | | svn path=/trunk/netsurf/; revision=12116
* Fix font sizing in text widgetJohn Mark Bell2011-03-131-2/+5
| | | | svn path=/trunk/netsurf/; revision=12016
* remove malloc.h anachronismVincent Sanders2011-01-061-1/+1
| | | | svn path=/trunk/netsurf/; revision=11227
* Merge branches/vince/netsurf-fbtk-rework to trunk.John Mark Bell2010-07-071-0/+421
svn path=/trunk/netsurf/; revision=10605