Clone in a terminal:
Commit 6bb58fb
Johan Mattsson - 2017-08-24T17:42:09+00:00
6bb58fbc0f817fb327664673a3802bf3f0b62167johan.mattsson.m@gmail.com

Remove hyphen in the full name field (Name table)

Changed files (2)

Diff

diff --git a/libbirdfont/KerningTools.vala b/libbirdfont/KerningTools.valaindex 59e0cbe..46b46fc 100644--- a/libbirdfont/KerningTools.vala+++ b/libbirdfont/KerningTools.vala@@ -245,7 +245,6 @@ public class KerningTools : ToolCollection  { 			} 		} -		kerning_class.h += 50; 		classes.add_tool (kerning_class); 	} 	diff --git a/libbirdfont/OpenFontFormat/NameTable.vala b/libbirdfont/OpenFontFormat/NameTable.valaindex 7b9fdf9..e35cc3b 100644--- a/libbirdfont/OpenFontFormat/NameTable.vala+++ b/libbirdfont/OpenFontFormat/NameTable.vala@@ -152,7 +152,11 @@ public class NameTable : OtfTable { 	public string validate_full_name (string s) { 		string n = name_validation (s, true); 		string regular_suffix = " Regular";-		++		n = n.replace ("-Regular", " Regular");+		n = n.replace ("-Bold", " Bold");+		n = n.replace ("-Italic", " Italic");+ 		if (n.has_suffix (regular_suffix)) { 			n = n.substring (0, n.length - regular_suffix.length); 		}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112