The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Merge ../birdfont-2.x

Changes made to libbirdfont/KerningDisplay.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/KerningDisplay.vala +++ libbirdfont/KerningDisplay.vala @@ -46,7 +46,7 @@ public bool adjust_side_bearings = false; public bool right_side_bearing = true; - public bool right_to_left = false; + public static bool right_to_left = false; WidgetAllocation allocation = new WidgetAllocation (); @@ -202,7 +202,7 @@ glyph.add_help_lines (); if (right_to_left) { - cr.translate (x - kern - glyph.get_lsb () - glyph.get_width () - Glyph.xc (), glyph.get_baseline () + y - Glyph.yc ()); + cr.translate (-kern + x - glyph.get_lsb () - glyph.get_width () - Glyph.xc (), glyph.get_baseline () + y - Glyph.yc ()); } else { cr.translate (kern + x - glyph.get_lsb () - Glyph.xc (), glyph.get_baseline () + y - Glyph.yc ()); }