Commit 4697f7f
Merge branch 'master' of github.com:johanmattssonm/birdfont
Changed files (10)
modifiedAUTHORSmodifiedNEWSmodifiedlibbirdfont/BirdFontFile.valamodifiedlibbirdfont/DefaultCharactersSet.valamodifiedlibbirdfont/ForesightTool.valamodifiedlibbirdfont/Glyph.valamodifiedlibbirdfont/PenTool.valamodifiedlibbirdfont/SpacingData.valamodifiedlibbirdfont/VersionList.valamodifiedscripts/version.py
Diff
@@ -6,3 +6,4 @@ Zhantong Zhang Clemens Lang Hideki Yamane Rene Mensen+Marko Jovanovac@@ -1,3 +1,9 @@+birdfont (2.3.1) stable;++ * Bug fixes++ -- Johan Mattsson <johan.mattsson.m@gmail.com> Fri Mar 20 18:23:31 CET 2015+ birdfont (2.3.0) stable; * Customizable color themes and better icons@@ -261,7 +261,7 @@ class BirdFontFile : GLib.Object { os.put_string (Font.to_hex (sc.next.get_char ())); os.put_string ("\" "); - os.put_string (" />\n");+ os.put_string ("/>\n"); } } @@ -33,6 +33,7 @@ public class DefaultCharacterSet { add_language (t_("Latin"), "la", ""); add_language (t_("Russian"), "ro", "А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я"); add_language (t_("Swedish"), "sv", "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Å Ä Ö a b c d e f g h i j k l m n o p q r s t u v w x y z å ä ö");+ add_language (t_("Thai"), "th", "ก-ฺ ฿-๛"); } /** Add a new language to the menu for default character set.@@ -109,9 +110,7 @@ public class DefaultCharacterSet { all_characters = get_characters_for_prefered_language (); if (all_characters != "") {- foreach (string c in all_characters.split (" ")) {- gr.add_single (c.get_char ());- }+ gr.parse_ranges (all_characters); } else { /// All lower case letters in alphabetic order separated by space. Letters with diacritical marks should be included. lower_case = t_("a b c d e f g h i j k l m n o p q r s t u v w x y z");@@ -119,13 +118,8 @@ public class DefaultCharacterSet { /// All upper case letters in alphabetic order separated by space. Letters with diacritical marks should be included. upper_case = t_("A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"); - foreach (string c in lower_case.split (" ")) {- gr.add_single (c.get_char ());- }-- foreach (string c in upper_case.split (" ")) {- gr.add_single (c.get_char ());- }+ gr.parse_ranges (lower_case);+ gr.parse_ranges (upper_case); } gr.add_range ('0', '9');@@ -195,7 +195,12 @@ public class ForesightTool : Tool { return; } last = PenTool.selected_points.get (PenTool.selected_points.size - 1);- last.point.convert_to_curve ();+ + if (last.point.get_right_handle ().is_line () || last.point.get_left_handle ().is_line ()) {+ last.point.convert_to_curve ();+ last.point.get_right_handle ().length = 0.01;+ last.point.get_left_handle ().length = 0.01;+ } } PenTool.move_selected_handle = true;@@ -2090,7 +2090,7 @@ public class Glyph : FontDisplay { glyph = gc.get_current (); glyph.left_limit = left_limit; glyph.right_limit = right_limit;- glyph.add_help_lines ();+ // FIXME: DELETE glyph.add_help_lines (); } } } @@ -124,10 +124,7 @@ public class PenTool : Tool { last_point_y = Glyph.path_coordinate_y (y); move_action (this, x, y);-- if (!has_join_icon ()) {- press (b, x, y, false);- }+ press (b, x, y, false); if (BirdFont.android) { point_selection_image = true;@@ -58,19 +58,17 @@ public class SpacingData : GLib.Object { } public void add_connections (string glyph) {- string sb = glyph;- - connections.add (sb);+ connections.add (glyph); foreach (SpacingClass s in classes) { if (s.first == glyph) {- if (has_connection (s.next)) {+ if (!has_connection (s.next)) { add_connections (s.next); } } if (s.next == glyph) {- if (has_connection (s.first)) {+ if (!has_connection (s.first)) { add_connections (s.first); } }@@ -116,7 +116,7 @@ public class VersionList : DropMenu { if (unlikely (glyphs.size == 0 && current_version_id == -1)) { warning (@"No glyphs added to collection");- gl = new Glyph ("", '\0');+ gl = new Glyph.no_lines ("", '\0'); } return (!) gl;@@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. """ -VERSION = '2.3.0'+VERSION = '2.3.1' SO_VERSION_MAJOR = '36' SO_VERSION_MINOR = '0' SO_VERSION = SO_VERSION_MAJOR + '.' + SO_VERSION_MINOR