summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-04-14 20:28:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-04-14 20:28:27 -0400
commitd48084dad998714a35afaa7500b0409ce42f7c87 (patch)
tree7b134d2f651aa0089b68a6bdd9ea636d6bfa0973
parent968a8e1cf0c5bd21e856204d3aa1f4256d7ff814 (diff)
downloadgtk+-d48084dad998714a35afaa7500b0409ce42f7c87.tar.gz
font chooser: Allow tweaking fractions
This makes some sense, and frac is meant to be set globally.
-rw-r--r--gtk/gtkfontchooserwidget.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 01df16d9a5..d5bdc4fbad 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -1897,7 +1897,7 @@ update_feature_example (FeatureItem *item,
const char *letter_case[] = { "smcp", "c2sc", "pcap", "c2pc", "unic", "cpsp", "case", NULL };
const char *number_case[] = { "xxxx", "lnum", "onum", NULL };
const char *number_spacing[] = { "xxxx", "pnum", "tnum", NULL };
- const char *number_formatting[] = { "zero", "nalt", NULL };
+ const char *number_formatting[] = { "zero", "nalt", "frac", NULL };
const char *char_variants[] = {
"swsh", "cswh", "calt", "falt", "hist", "salt", "jalt", "titl", "rand",
"ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08", "ss09", "ss10",
@@ -1940,6 +1940,8 @@ update_feature_example (FeatureItem *item,
input = g_strdup ("AaBbCc…");
else if (strcmp (item->name, "zero") == 0)
input = g_strdup ("0");
+ else if (strcmp (item->name, "frac") == 0)
+ input = g_strdup ("1/2 2/3 7/8");
else if (strcmp (item->name, "nalt") == 0)
input = find_affected_text (item->tag, hb_face, script_tag, lang_tag, 3);
else
@@ -2128,7 +2130,7 @@ gtk_font_chooser_widget_populate_features (GtkFontChooserWidget *fontchooser)
const char *letter_case[] = { "smcp", "c2sc", "pcap", "c2pc", "unic", "cpsp", "case", NULL };
const char *number_case[] = { "xxxx", "lnum", "onum", NULL };
const char *number_spacing[] = { "xxxx", "pnum", "tnum", NULL };
- const char *number_formatting[] = { "zero", "nalt", NULL };
+ const char *number_formatting[] = { "zero", "nalt", "frac", NULL };
const char *char_variants[] = {
"swsh", "cswh", "calt", "falt", "hist", "salt", "jalt", "titl", "rand",
"ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08", "ss09", "ss10",