summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build-fix for older versions of freetype2: FT_HAS_SVG was added late in 2021HEADmasterThomas E. Dickey2023-05-011-0/+4
|
* issue 19: Problem loading "SourceCodePro-Regular" font in FedoraThomas E. Dickey2023-04-301-1/+1
| | | | | | | | | | Ignore face flag FT_FACE_FLAG_COLOR if FT_FACE_FLAG_SVG is set, allowing adobe-source-code-pro font to work. This bug was introduced by a change in freetype2 #1151, 62bc04f4c5b4369cc493ff24b1de27aabd79e0c6 Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* libXft 2.3.8libXft-2.3.8Matt Turner2023-04-171-1/+1
| | | | Signed-off-by: Matt Turner <mattst88@gmail.com>
* configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith2023-03-041-1/+2
| | | | | | | | | | | | | | | | | AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:39: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:39: You should run autoupdate. aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from... configure.ac:39: the top level libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* issue 18: Problems with rotated text (monospace font only)Thomas E. Dickey2023-01-181-1/+1
| | | | | | | | Updates for version 2.3.5 included improvements for font rotation. One of the minus-signs was dropped, causing a change to the orientation of strings. Restore the minus-sign. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* issue 17: libxft-2.3.7: Bold fonts in urxvt missing leftmost pixelsThomas E. Dickey2022-11-271-2/+6
| | | | | | | | | Update for issue 16 replaced maximum advance with truncated offsets. However, in some cases (e.g., server providing a fake bold version of a font), the result may extend outside the bounding box for the glyph. To work around this, use the minimum of old/new values. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* add check for missing glyph in XftFontCheckGlyph()Thomas E. Dickey2022-11-201-1/+4
| | | | | | | | | | This check is needed when updating the linked list of glyphs, since the older/newer links are not set, causing an xterm crash for certain fonts which have holes (e.g., Kochi Mincho). reported by Jeff Chua Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* libXft 2.3.7libXft-2.3.7Thomas E. Dickey2022-11-151-1/+1
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* libxft issue #16Thomas E. Dickey2022-11-141-1/+1
| | | | | | | | | | | https://gitlab.freedesktop.org/xorg/lib/libxft/-/issues/16 Stack gets smashed in fonts with colors when calling XftGlyphRender BGRA changes made incorrect comparison for local vs allocated buffer in XftGlyphSpecRender Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix compiler warningThomas E. Dickey2022-11-131-2/+2
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* libxft issue #15Thomas E. Dickey2022-11-121-2/+2
| | | | | | | | | | | | | https://gitlab.freedesktop.org/xorg/lib/libxft/-/issues/15 XftFontLoadGlyphs for mono font returns wrong info in extents from XftTextExtentsUtf8 for variable chars Patch by Scott Mcdermott, based on https://github.com/googlefonts/Inconsolata/issues/42 Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* stdint.h header is needed for SIZE_MAXericLemanissier2022-09-251-0/+1
|
* libXft 2.3.6libXft-2.3.6Thomas E. Dickey2022-09-102-3/+7
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* fix gcc12 warning about malloc sizeThomas E. Dickey2022-09-071-3/+8
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* revised fix for gcc 12 compiler warnings in xftextent.cThomas E. Dickey2022-09-071-5/+5
| | | | Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
* Fix length check in XftTextExtents*.Adam Sampson2022-09-071-5/+5
| | | | | | | | | | | Commit 06a3c0ab6520e368ac936cb1ef172f19957db0fa added length checks of the form "if (len <= 0) return;" to various Xft functions. However, while rendering an empty string is equivalent to doing nothing, asking for the extents of an empty string isn't -- it still needs to fill in the extents structure. This broke text rendering in some applications (e.g. xpdf's Motif GUI). Check for len < 0 in XftTextExtents* instead.
* 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>