Age | Commit message (Collapse) | Author | Files | Lines |
|
Since _X_UNUSED is only used in source code, not exported headers,
the version requirement is only set in configure.ac, not xft.pc.
Fixes: 4dadf0e ("quiet unused-parameter warnings with _X_UNUSED")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/32>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/32>
|
|
Other parts of the code already required later versions of X, so this
is just cleaning out #ifdef cases that can never be hit anymore.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/32>
|
|
Initialize `nmissing` so that XftFontCheckGlyph does not write past the end
of the `missing` array if a glyph is missing.
Signed-off-by: Peter Harris <pharris2@rocketsoftware.com>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
|
|
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>
|
|
Signed-off-by: Matt Turner <mattst88@gmail.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
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>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
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>
|
|
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
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.
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
see note in libXft merge-request #1 at #note_1222314
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
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>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|