Clone in a terminal:
Commit 03e7cb0
Johan Mattsson - 2017-08-24T16:53:05+00:00
03e7cb0b966a30eb9e5d75abe8b7a269f9e3ed3bjohan.mattsson.m@gmail.com

Fix kerning class clipping in toolbox

Changed files (2)

Diff

diff --git a/libbirdfont/Expander.vala b/libbirdfont/Expander.valaindex e28e8bc..6a589db 100644--- a/libbirdfont/Expander.vala+++ b/libbirdfont/Expander.vala@@ -69,7 +69,7 @@ public class Expander : GLib.Object { 	}  	public double get_content_height () {-		return content_height;
+		return content_height; 	}  	/** Returns true if tools can be used with the current canvas after@@ -192,7 +192,9 @@ public class Expander : GLib.Object {  					if (previous is ZoomBar) { 						content_height += 7 * scale;-					}+					} else if (previous is KerningRange) {+						content_height += 10 * scale;+					}  										 					previous = t; 					first_row = false;@@ -201,7 +203,7 @@ public class Expander : GLib.Object { 			 			content_height += 5 * scale; 		}-		+ 		if (unlikely (content_height < 0)) { 			warning (@"content_height < 0");	 		}diff --git a/libbirdfont/KerningTools.vala b/libbirdfont/KerningTools.valaindex 8b996ce..59e0cbe 100644--- a/libbirdfont/KerningTools.vala+++ b/libbirdfont/KerningTools.vala@@ -238,13 +238,14 @@ public class KerningTools : ToolCollection  { 				warning ("Tool is not kerning range"); 				return; 			}-			+ 			k = (KerningRange) t; 			if (k.glyph_range.get_all_ranges () == kerning_class.glyph_range.get_all_ranges ()) { 				return; 			} 		}-		++		kerning_class.h += 50; 		classes.add_tool (kerning_class); 	} 	

Contact

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