[gnome-font-viewer] model: Only show scalable fonts
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer] model: Only show scalable fonts
- Date: Fri, 27 Jan 2017 18:22:43 +0000 (UTC)
commit 5f994ce5847e510a2d3694a0656d58716fa70ffa
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Sep 22 18:10:57 2016 -0500
model: Only show scalable fonts
Although arguably font-viewer should show all fonts installed on the
system, some distros have some questionable fonts and displaying them
all makes font-viewer look really bad.
https://bugzilla.gnome.org/show_bug.cgi?id=771857
src/font-model.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/font-model.c b/src/font-model.c
index e40a2ec..fb303cc 100644
--- a/src/font-model.c
+++ b/src/font-model.c
@@ -495,6 +495,7 @@ ensure_font_list (FontViewModel *self)
self->priv->font_list = NULL;
}
+ FcPatternAddBool (pat, FC_SCALABLE, FcTrue);
self->priv->font_list = FcFontList (NULL, pat, os);
g_mutex_unlock (&self->priv->font_list_mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]