diff options
author | Squibby <34315567+squibbysquibby@users.noreply.github.com> | 2017-12-06 16:56:00 -0300 |
---|---|---|
committer | Squibby <34315567+squibbysquibby@users.noreply.github.com> | 2017-12-06 20:39:07 -0300 |
commit | eb96c7172555f96b07969c6abf74740bb03e36f9 (patch) | |
tree | 8fb39b0c1a3ee8adc46e13315409e341e2d5c028 /Makefile | |
parent | f02661879ff0efefc6751d927c2e721e64ad79f0 (diff) |
Try to match a fallback font if needed
Fixes #276
Instead of rendering the entire filename at once, Xft will let us do it
character by character. This will allow sxiv to query fontconfig for
a font that can provide any missing codepoints, if needed.
A known issue of this patch is that the "..." dots rendering will not
work properly for very long multibyte filenames. That is because we
cannot easily predict the final width of the rendered filename before
drawing it. I couldn't figure out a clean way to deal with this, so I
ended up just truncating the offending filenames.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ LIB_EXIF_0 = LIB_EXIF_1 = -lexif LIB_GIF_0 = LIB_GIF_1 = -lgif -LDLIBS = -lImlib2 -lX11 -lXft \ +LDLIBS = -lImlib2 -lX11 -lXft -lfontconfig \ $(LIB_EXIF_$(HAVE_LIBEXIF)) $(LIB_GIF_$(HAVE_GIFLIB)) OBJS = autoreload_$(AUTORELOAD).o commands.o image.o main.o options.o \ |