The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Add icon for automatic path orientation

These changes was commited to the Birdfont repository Tue, 20 Oct 2015 20:03:54 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 20 Oct 2015 20:03:54 +0000 (22:03 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 20 Oct 2015 20:03:54 +0000 (22:03 +0200)
commit 06217d8b94291685b5367f55b440f04aae58b148
tree 7e8181e0f4e0a74cb3b8e719ef6200b49e689e76
parent 6a3007e984fddc68fe88da9436be3c35b10759d0
Add icon for automatic path orientation

README.md
libbirdfont/Glyph.vala
resources/icons.bf
--- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Configure, build and install with python: ./configure - ./scripts/linux_build.py + ./build.py sudo ./install.py Configure, build and install with doit:
--- a/libbirdfont/Glyph.vala +++ b/libbirdfont/Glyph.vala @@ -179,6 +179,10 @@ return layers.get_visible_paths ().paths; } + public PathList get_visible_path_list () { + return layers.get_visible_paths (); + } + public Gee.ArrayList<Path> get_paths_in_current_layer () { return get_current_layer ().get_all_paths ().paths; }
--- a/resources/icons.bf +++ b/resources/icons.bf @@ -510,6 +510,11 @@ <path data="B -27.2018048600,27.0204160000 C -27.2018048600,11.8765420000 -14.9456830000,-0.3795800000 0.1981920000,-0.3795800000 C 15.3420660000,-0.3795800000 27.5981880000,11.8765420000 27.5981880000,27.0204160000 C 27.5981880000,42.1642910000 15.3420660000,54.4204130000 0.1981920000,54.4204130000 C -14.9456830000,54.4204130000 -27.2018048600,42.1642910000 -27.2018048600,27.0204160000" /> <path data="B 4.5793401423,28.8994892452 C 6.2870122426,28.5343810406 7.6178286816,27.7747580013 8.5717966953,26.6206092734 C 9.5375049297,25.4664352199 10.0203662828,24.0414039610 10.0203879905,22.3455010251 C 10.0203662828,19.7427465302 9.1253019780,17.7288554623 7.3351950760,16.3038205855 C 5.5450519946,14.8787857087 3.0011903548,14.1662682703 -0.2964006974,14.1662682703 C -1.4034619141,14.1662682703 -2.5458450956,14.2781350277 -3.7235538598,14.5019047218 C -4.8894970776,14.7138799260 -6.0966522694,15.0377653029 -7.3450266709,15.4735210551 M -7.3450266709,18.9183406268 C -6.3557511642,18.3412536000 -5.2722536018,17.9055014658 -4.0945339838,17.6110733703 C -2.9168252195,17.3166452747 -1.6861136094,17.1694276023 -0.4023955354,17.1694312269 C 1.8352543728,17.1694276258 3.5370509358,17.6110733703 4.7030013896,18.4943612748 C 5.8806993000,19.3776419435 6.4695591090,20.6613527816 6.4695735808,22.3454901712 C 6.4695591090,23.9000654506 5.9219221277,25.1131106514 4.8266626369,25.9846330096 C 3.7431506027,26.8679064424 2.2297872973,27.3095485867 0.2865691025,27.3095630575 M -2.7872667273,27.3095630575 M -2.7872667273,30.2420712307 M 0.4278931412,30.2420712307 C 2.1826780784,30.2420567605 3.5252709177,30.5894659927 4.4556825129,31.2843495832 C 5.3860615466,31.9909625408 5.8512564904,33.0037980838 5.8512745801,34.3228562123 C 5.8512564904,35.6772073621 5.3683951373,36.7135957056 4.4026832849,37.4320248608 C 3.4487225072,38.1621833829 2.0766832404,38.5272771167 0.2865691025,38.5272988234 C -0.6909444757,38.5272771172 -1.7391092194,38.4212931316 -2.8579323645,38.2093179274 C -3.9767663635,37.9973065437 -5.2074779736,37.6675456296 -6.5500708129,37.2200351848 M -6.5500708129,40.3998694705 C -5.1957015734,40.7767106601 -3.9296571446,41.0593623554 -2.7519375266,41.2478245565 C -1.5624523621,41.4362469602 -0.4436255990,41.5304581628 0.6045536165,41.5304943415 C 3.3132848596,41.5304653961 5.4567235660,40.9121663973 7.0348769714,39.6755901037 C 8.6129978153,38.4507431770 9.4020672822,36.7901658238 9.4020853719,34.6938544260 C 9.4020672822,33.2334686409 8.9839779393,31.9968706396 8.1478173433,30.9840531863 C 7.3116241859,29.9829795717 6.1221317855,29.2881249247 4.5793401423,28.8994892452" /> </layer> + </glyph> + </collection> + <collection name="curve_orientation"> + <selected id="0"/> + <glyph id="0" left="-28" right="28"> </glyph> </collection> <collection name="cut_background"> @@ -1549,104 +1554,105 @@ <ligature sequence="i n s e r t _ g l y p h _ f r o m _ o v e r v i e w" replacement="insert_glyph_from_overview"/> <ligature sequence="h i g h _ c o n t r a s t _ b a c k g r o u n d" replacement="high_contrast_background"/> <ligature sequence="p r e v i o u s _ k e r n i n g _ s t r i n g" replacement="previous_kerning_string"/> + <ligature sequence="s h o w _ x h e i g h t _ h e l p l i n e s" replacement="show_xheight_helplines"/> <ligature sequence="g e n e r a t e _ h t m l _ d o c u m e n t" replacement="generate_html_document"/> - <ligature sequence="s h o w _ x h e i g h t _ h e l p l i n e s" replacement="show_xheight_helplines"/> + <ligature sequence="s h o w _ a l l _ l i n e _ h a n d l e s" replacement="show_all_line_handles"/> + <ligature sequence="b a c k g r o u n d _ h e l p _ l i n e s" replacement="background_help_lines"/> + <ligature sequence="a u t o _ t r a c e _ r e s o l u t i o n" replacement="auto_trace_resolution"/> + <ligature sequence="z o o m _ b a c k g r o u n d _ i m a g e" replacement="zoom_background_image"/> <ligature sequence="o r i e n t a t i o n _ c l o c k w i s e" replacement="orientation_clockwise"/> - <ligature sequence="z o o m _ b a c k g r o u n d _ i m a g e" replacement="zoom_background_image"/> - <ligature sequence="a u t o _ t r a c e _ r e s o l u t i o n" replacement="auto_trace_resolution"/> - <ligature sequence="b a c k g r o u n d _ h e l p _ l i n e s" replacement="background_help_lines"/> - <ligature sequence="s h o w _ a l l _ l i n e _ h a n d l e s" replacement="show_all_line_handles"/> + <ligature sequence="a u t o _ t r a c e _ s i m p l i f y" replacement="auto_trace_simplify"/> <ligature sequence="n e x t _ k e r n i n g _ s t r i n g" replacement="next_kerning_string"/> - <ligature sequence="a u t o _ t r a c e _ s i m p l i f y" replacement="auto_trace_simplify"/> - <ligature sequence="c o n t r a s t _ t h r e s h o l d" replacement="contrast_threshold"/> <ligature sequence="k e r n i n g _ t e x t _ i n p u t" replacement="kerning_text_input"/> - <ligature sequence="s t r o k e _ t o _ o u t l i n e" replacement="stroke_to_outline"/> - <ligature sequence="s e l e c t _ b a c k g r o u n d" replacement="select_background"/> + <ligature sequence="c o n t r a s t _ t h r e s h o l d" replacement="contrast_threshold"/> + <ligature sequence="o r i e n t a t i o n _ a r r o w" replacement="orientation_arrow"/> + <ligature sequence="d e l e t e _ b a c k g r o u n d" replacement="delete_background"/> + <ligature sequence="n e w _ p o i n t _ o n _ p a t h" replacement="new_point_on_path"/> <ligature sequence="i n s e r t _ b a c k g r o u n d" replacement="insert_background"/> - <ligature sequence="n e w _ p o i n t _ o n _ p a t h" replacement="new_point_on_path"/> - <ligature sequence="d e l e t e _ b a c k g r o u n d" replacement="delete_background"/> - <ligature sequence="o r i e n t a t i o n _ a r r o w" replacement="orientation_arrow"/> - <ligature sequence="o r i e n t a t i o n _ b o t h" replacement="orientation_both"/> - <ligature sequence="q u a d r a t i c _ p o i n t s" replacement="quadratic_points"/> + <ligature sequence="s e l e c t _ b a c k g r o u n d" replacement="select_background"/> + <ligature sequence="s t r o k e _ t o _ o u t l i n e" replacement="stroke_to_outline"/> + <ligature sequence="c u r v e _ o r i e n t a t i o n" replacement="curve_orientation"/> <ligature sequence="s c a l e _ b a c k g r o u n d" replacement="scale_background"/> - <ligature sequence="z o o m _ b o u n d a r i e s" replacement="zoom_boundaries"/> - <ligature sequence="s h o w _ b a c k g r o u n d" replacement="show_background"/> - <ligature sequence="f l i p _ h o r i z o n t a l" replacement="flip_horizontal"/> - <ligature sequence="m o v e _ b a c k g r o u n d" replacement="move_background"/> - <ligature sequence="l i n e _ c a p _ s q u a r e" replacement="line_cap_square"/> + <ligature sequence="q u a d r a t i c _ p o i n t s" replacement="quadratic_points"/> + <ligature sequence="o r i e n t a t i o n _ b o t h" replacement="orientation_both"/> <ligature sequence="r e s i z e _ o v e r v i e w" replacement="resize_overview"/> - <ligature sequence="f i l l _ o p e n _ p a t h" replacement="fill_open_path"/> - <ligature sequence="u p d a t e _ w e b v i e w" replacement="update_webview"/> - <ligature sequence="c u t _ b a c k g r o u n d" replacement="cut_background"/> - <ligature sequence="i n s e r t _ u n i c h a r" replacement="insert_unichar"/> + <ligature sequence="l i n e _ c a p _ s q u a r e" replacement="line_cap_square"/> + <ligature sequence="m o v e _ b a c k g r o u n d" replacement="move_background"/> + <ligature sequence="f l i p _ h o r i z o n t a l" replacement="flip_horizontal"/> + <ligature sequence="s h o w _ b a c k g r o u n d" replacement="show_background"/> + <ligature sequence="z o o m _ b o u n d a r i e s" replacement="zoom_boundaries"/> <ligature sequence="l i n e _ c a p _ r o u n d" replacement="line_cap_round"/> - <ligature sequence="a d d _ n e w _ t h e m e" replacement="add_new_theme"/> - <ligature sequence="k e r n i n g _ c l a s s" replacement="kerning_class"/> - <ligature sequence="d o u b l e _ p o i n t s" replacement="double_points"/> - <ligature sequence="c o n v e r t _ p o i n t" replacement="convert_point"/> - <ligature sequence="d e l e t e _ b u t t o n" replacement="delete_button"/> - <ligature sequence="f l i p _ v e r t i c a l" replacement="flip_vertical"/> - <ligature sequence="d r o p d o w n _ m e n u" replacement="dropdown_menu"/> - <ligature sequence="r e s i z e _ h a n d l e" replacement="resize_handle"/> - <ligature sequence="l i n e _ c a p _ b u t t" replacement="line_cap_butt"/> - <ligature sequence="l a y e r _ v i s i b l e" replacement="layer_visible"/> + <ligature sequence="i n s e r t _ u n i c h a r" replacement="insert_unichar"/> + <ligature sequence="c u t _ b a c k g r o u n d" replacement="cut_background"/> + <ligature sequence="u p d a t e _ w e b v i e w" replacement="update_webview"/> + <ligature sequence="f i l l _ o p e n _ p a t h" replacement="fill_open_path"/> <ligature sequence="s k e w _ o v e r v i e w" replacement="skew_overview"/> - <ligature sequence="a p p l y _ s t r o k e" replacement="apply_stroke"/> - <ligature sequence="e x p o r t _ f o n t s" replacement="export_fonts"/> - <ligature sequence="r e v e r s e _ p a t h" replacement="reverse_path"/> - <ligature sequence="c u b i c _ p o i n t s" replacement="cubic_points"/> - <ligature sequence="x _ c o o r d i n a t e" replacement="x_coordinate"/> - <ligature sequence="y _ c o o r d i n a t e" replacement="y_coordinate"/> + <ligature sequence="l a y e r _ v i s i b l e" replacement="layer_visible"/> + <ligature sequence="l i n e _ c a p _ b u t t" replacement="line_cap_butt"/> + <ligature sequence="r e s i z e _ h a n d l e" replacement="resize_handle"/> + <ligature sequence="d r o p d o w n _ m e n u" replacement="dropdown_menu"/> + <ligature sequence="f l i p _ v e r t i c a l" replacement="flip_vertical"/> + <ligature sequence="d e l e t e _ b u t t o n" replacement="delete_button"/> + <ligature sequence="c o n v e r t _ p o i n t" replacement="convert_point"/> + <ligature sequence="d o u b l e _ p o i n t s" replacement="double_points"/> + <ligature sequence="k e r n i n g _ c l a s s" replacement="kerning_class"/> + <ligature sequence="a d d _ n e w _ t h e m e" replacement="add_new_theme"/> <ligature sequence="l a y e r _ h i d d e n" replacement="layer_hidden"/> - <ligature sequence="m o v e _ c a n v a s" replacement="move_canvas"/> - <ligature sequence="s p i n _ b u t t o n" replacement="spin_button"/> - <ligature sequence="c r e a t e _ l i n e" replacement="create_line"/> - <ligature sequence="b e z i e r _ l i n e" replacement="bezier_line"/> - <ligature sequence="r i g h t _ a r r o w" replacement="right_arrow"/> - <ligature sequence="b e z i e r _ t o o l" replacement="bezier_tool"/> + <ligature sequence="y _ c o o r d i n a t e" replacement="y_coordinate"/> + <ligature sequence="x _ c o o r d i n a t e" replacement="x_coordinate"/> + <ligature sequence="c u b i c _ p o i n t s" replacement="cubic_points"/> + <ligature sequence="r e v e r s e _ p a t h" replacement="reverse_path"/> + <ligature sequence="e x p o r t _ f o n t s" replacement="export_fonts"/> + <ligature sequence="a p p l y _ s t r o k e" replacement="apply_stroke"/> <ligature sequence="s h o w _ l a y e r s" replacement="show_layers"/> - <ligature sequence="f u l l _ g l y p h" replacement="full_glyph"/> - <ligature sequence="p o i n t _ t o o l" replacement="point_tool"/> - <ligature sequence="s e l e c t _ a l l" replacement="select_all"/> - <ligature sequence="m o v e _ l a y e r" replacement="move_layer"/> - <ligature sequence="h e l p _ l i n e s" replacement="help_lines"/> - <ligature sequence="l e f t _ a r r o w" replacement="left_arrow"/> + <ligature sequence="b e z i e r _ t o o l" replacement="bezier_tool"/> + <ligature sequence="r i g h t _ a r r o w" replacement="right_arrow"/> + <ligature sequence="b e z i e r _ l i n e" replacement="bezier_line"/> + <ligature sequence="c r e a t e _ l i n e" replacement="create_line"/> + <ligature sequence="s p i n _ b u t t o n" replacement="spin_button"/> + <ligature sequence="m o v e _ c a n v a s" replacement="move_canvas"/> <ligature sequence="c l o s e _ p a t h" replacement="close_path"/> - <ligature sequence="t r a n s f o r m" replacement="transform"/> - <ligature sequence="a d d _ l a y e r" replacement="add_layer"/> - <ligature sequence="o p e n _ f o n t" replacement="open_font"/> - <ligature sequence="m e n u _ i c o n" replacement="menu_icon"/> - <ligature sequence="t t f _ u n i t s" replacement="ttf_units"/> - <ligature sequence="r e c t a n g l e" replacement="rectangle"/> - <ligature sequence="z o o m _ t o o l" replacement="zoom_tool"/> - <ligature sequence="s y m m e t r i c" replacement="symmetric"/> - <ligature sequence="t i e _ p o i n t" replacement="tie_point"/> - <ligature sequence="u n d o _ t o o l" replacement="undo_tool"/> - <ligature sequence="a u t o t r a c e" replacement="autotrace"/> - <ligature sequence="s h o w _ g r i d" replacement="show_grid"/> - <ligature sequence="i n f o _ i c o n" replacement="info_icon"/> - <ligature sequence="s a v e _ f o n t" replacement="save_font"/> - <ligature sequence="l o c k _ g r i d" replacement="lock_grid"/> + <ligature sequence="l e f t _ a r r o w" replacement="left_arrow"/> + <ligature sequence="h e l p _ l i n e s" replacement="help_lines"/> + <ligature sequence="m o v e _ l a y e r" replacement="move_layer"/> + <ligature sequence="s e l e c t _ a l l" replacement="select_all"/> + <ligature sequence="p o i n t _ t o o l" replacement="point_tool"/> + <ligature sequence="f u l l _ g l y p h" replacement="full_glyph"/> <ligature sequence="a l t e r n a t e" replacement="alternate"/> - <ligature sequence="n e w _ f o n t" replacement="new_font"/> - <ligature sequence="p r o g r e s s" replacement="progress"/> - <ligature sequence="z o o m _ 1 _ 1" replacement="zoom_1_1"/> - <ligature sequence="p e n _ t o o l" replacement="pen_tool"/> - <ligature sequence="r o t a t i o n" replacement="rotation"/> - <ligature sequence="z o o m _ o u t" replacement="zoom_out"/> + <ligature sequence="l o c k _ g r i d" replacement="lock_grid"/> + <ligature sequence="s a v e _ f o n t" replacement="save_font"/> + <ligature sequence="i n f o _ i c o n" replacement="info_icon"/> + <ligature sequence="s h o w _ g r i d" replacement="show_grid"/> + <ligature sequence="a u t o t r a c e" replacement="autotrace"/> + <ligature sequence="u n d o _ t o o l" replacement="undo_tool"/> + <ligature sequence="t i e _ p o i n t" replacement="tie_point"/> + <ligature sequence="s y m m e t r i c" replacement="symmetric"/> + <ligature sequence="z o o m _ t o o l" replacement="zoom_tool"/> + <ligature sequence="r e c t a n g l e" replacement="rectangle"/> + <ligature sequence="t t f _ u n i t s" replacement="ttf_units"/> + <ligature sequence="m e n u _ i c o n" replacement="menu_icon"/> + <ligature sequence="o p e n _ f o n t" replacement="open_font"/> + <ligature sequence="a d d _ l a y e r" replacement="add_layer"/> + <ligature sequence="t r a n s f o r m" replacement="transform"/> <ligature sequence="s e t t i n g s" replacement="settings"/> + <ligature sequence="z o o m _ o u t" replacement="zoom_out"/> + <ligature sequence="r o t a t i o n" replacement="rotation"/> + <ligature sequence="p e n _ t o o l" replacement="pen_tool"/> + <ligature sequence="z o o m _ 1 _ 1" replacement="zoom_1_1"/> + <ligature sequence="p r o g r e s s" replacement="progress"/> + <ligature sequence="n e w _ f o n t" replacement="new_font"/> <ligature sequence="z o o m _ i n" replacement="zoom_in"/> - <ligature sequence="c i r c l e" replacement="circle"/> - <ligature sequence="r e s i z e" replacement="resize"/> <ligature sequence="h e i g h t" replacement="height"/> - <ligature sequence="t r a c k" replacement="track"/> - <ligature sequence="w i d t h" replacement="width"/> + <ligature sequence="r e s i z e" replacement="resize"/> + <ligature sequence="c i r c l e" replacement="circle"/> <ligature sequence="t h e m e" replacement="theme"/> - <ligature sequence="n e x t" replacement="next"/> - <ligature sequence="p r e v" replacement="prev"/> - <ligature sequence="m o v e" replacement="move"/> + <ligature sequence="w i d t h" replacement="width"/> + <ligature sequence="t r a c k" replacement="track"/> <ligature sequence="s k e w" replacement="skew"/> + <ligature sequence="m o v e" replacement="move"/> + <ligature sequence="p r e v" replacement="prev"/> + <ligature sequence="n e x t" replacement="next"/> <kerning left="settings" right="l" hadjustment="3.8289794922" /> </font>