summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libXft 2.3.5libXft-2.3.5Thomas E. Dickey2022-09-052-3/+9
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* update copyright noticeThomas E. Dickey2022-07-091-12/+13
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add a null-pointer checkThomas E. Dickey2022-07-091-0/+2
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix new gcc warningsThomas E. Dickey2022-07-092-22/+25
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* build-fixThomas E. Dickey2022-07-091-3/+3
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* merge changes by Christian WernerThomas E. Dickey2022-07-093-139/+234
| | | | | | see note in libXft merge-request #1 at #note_1222314 Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* cleanup new compiler warningsThomas E. Dickey2022-07-091-14/+15
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* build-fix for c89Thomas E. Dickey2022-07-091-2/+3
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* Add support for BGRA glyphs display and scalingMaxime Coste2022-07-094-30/+293
| | | | | | | | | | | | | | | | | Display is done using an XRender Picture, as XRender glyphs are incompatible with BGRA rendering due to their use of the glyph bitmap as a mask. Scaling is done by averaging all relevant pixel, which gives much better result than nearest pixel sampling while staying simple enough and not too computationally expensive. This enables color emoji rendering support. Fixes: #6 Signed-off-by: Maxime Coste <mawww@kakoune.org> Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* Introduce a _XftCompositeText helper functionMaxime Coste2022-07-091-34/+49
| | | | | | | Dispatch to XRenderCompositeText{8,16,32} based off the given width. Signed-off-by: Maxime Coste <mawww@kakoune.org> Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* Introduce a _XftCompositeString helper functionMaxime Coste2022-07-091-18/+43
| | | | | | | Dispatch to XRenderCompositeString{8,16,32} based off the given width. Signed-off-by: Maxime Coste <mawww@kakoune.org> Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* errata (cppcheck, clang --analyze, manpage credit)Thomas E. Dickey2022-07-066-13/+8
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* document new features for glyph memory-trackingThomas E. Dickey2022-07-061-1/+11
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* improve glyph management by relinking to unload least-recently used glyphsThomas E. Dickey2022-07-061-2/+34
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* when tracking glyph memory usage, unload the oldest glyph rather than randomlyThomas E. Dickey2022-07-061-1/+12
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* cppcheck/gcc-stricter warnings about printf-formats and operator precedenceThomas E. Dickey2022-07-062-13/+14
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix delinkage of last glyph in font, improve debug-traceThomas E. Dickey2022-07-061-7/+10
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add asserts (to help with debugging), update copyright noticesThomas E. Dickey2022-07-063-36/+43
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* refactor _XftFontUncacheGlyph, separate the two types of loop for readabilityThomas E. Dickey2022-07-061-19/+35
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* validate linked-list updates with _XftValidateGlyphUsageThomas E. Dickey2022-07-063-17/+92
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add option for tracking glyph memory-usage on a linked listThomas E. Dickey2022-07-066-20/+91
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add "trackmemusage" property to use in improved _XftFontUncacheGlyphThomas E. Dickey2022-07-067-27/+71
| | | | | | | | | The linear search used for randomly selecting a glyph to discard is inefficient. This commit provides for a doubly-linked list which could be maintained by the library to quickly discard the least recently used glyph. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* reduce clutter with macros for allocating arraysThomas E. Dickey2022-07-064-25/+31
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add debugging trace for XftDefaultSet()Thomas E. Dickey2022-06-241-0/+4
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add section of functions managing XftColorThomas E. Dickey2022-06-131-18/+114
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add a section on the XFT_DEBUG environment variableThomas E. Dickey2022-06-111-2/+47
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add a table of the "families" of functionsThomas E. Dickey2022-06-111-1/+22
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* document XftGlyphFontSpecRender() and related functions.Thomas E. Dickey2022-06-111-1/+156
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* reduce clutter for external data-types by documenting them one timeThomas E. Dickey2022-06-111-60/+53
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* document the clipping-functionsThomas E. Dickey2022-06-111-33/+204
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add section on manipulating font dataThomas E. Dickey2022-06-111-4/+105
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add section on manipulating font patternsThomas E. Dickey2022-06-111-4/+58
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* remove remaining internal prototypes for obsolete xftcompat.cThomas E. Dickey2022-06-111-34/+0
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* move prototype for XftNameUnparse to Xft.hThomas E. Dickey2022-06-112-1/+3
| | | | | | | This entrypoint has "always" been exported, but not declared publicly. It is used for debugging in xterm. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* document XftFontOpenXlfd and XftXlfdParseThomas E. Dickey2022-06-111-2/+69
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add overview for text-extents sectionThomas E. Dickey2022-06-111-3/+19
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* change data-types to subsections to help with readabilityThomas E. Dickey2022-06-111-41/+29
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* consistently bold "Xft"Thomas E. Dickey2022-06-111-25/+63
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* initial draft of initialization-functions documentationThomas E. Dickey2022-06-111-16/+186
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* amend rule for creating manpage aliasesThomas E. Dickey2022-06-111-1/+1
| | | | | | eliminate too-specific gzip step, rely upon packaging system to do this. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* cleanup manpage commentsThomas E. Dickey2022-06-111-26/+41
| | | | | | | cleanup comments used as reminders to mention functions, leaving comments used as reminders to add new paragraphs. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* install man-aliases for all of the exported symbolsThomas E. Dickey2022-06-112-3/+93
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* corrected prototypes in manpage, matching Xft.hThomas E. Dickey2022-06-111-14/+14
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* reuse macros from Xcursor.man to fix ragged layout of typedefs and prototypesThomas E. Dickey2022-06-111-193/+240
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix warnings by gcc 11; check if length <= zeroThomas E. Dickey2022-06-033-0/+66
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* formatting fix, for clarity (no object change)Thomas E. Dickey2022-06-031-13/+23
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* quiet compiler warning with castThomas E. Dickey2022-06-031-1/+1
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* quiet compiler warning with castThomas E. Dickey2022-06-031-1/+1
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* change the internal memory-allocator to use size_tThomas E. Dickey2022-06-033-19/+22
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* quiet warnings with castsThomas E. Dickey2022-06-033-5/+5
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>