gramps/gramps
Vassilii Khachaturov face94275c 4571: RTL support in fan chart
gramps/gui/utilscairo.py:
new file, currently holds just the warpPath() function,
taken from /usr/share/doc/python-cairo/examples/warpedtext.py,
with explanatory docs added.

gramps/gui/widgets/fanchart.py, class FanChartBaseWidget:
draw_text() method:
previous logic using cairo toy text API didn't support CTL text.
It has been removed, and replaced with a call to a new
method, draw_arc_text().

Flagged a subtle Unicode issue in the remaining old code,
for radial-oriented text, with a FIXME, I'll probably fix it
later as a separate issue.

create_map_rect_to_sector() static method:
create a transform to use with gui.utilscairo.warpPath(),
currently used in draw_arc_text().

Following Benny's code review I have annotated the algorithm
and made it hopefully clear, but I guess it could be reworked
into a better form if re-expressed with stacked transforms /
complex numbers / matrices for easier later maintenance.
Meanwhile I have used the same approach as the older code
in the file, good enough for a patch under this feature request.

The only issue remaining from the code review is whether
the create_map_rect_to_sector() function should be moved
to gui.utilscairo; see the bug thread.

svn: r22548
2013-06-21 14:13:40 +00:00
..
cli 6821: CLI asks forever when trying to overwrite while exporting 2013-06-20 16:34:22 +00:00
gen 6817: print should be now a function 2013-06-20 14:27:33 +00:00
gui 4571: RTL support in fan chart 2013-06-21 14:13:40 +00:00
guiQML from future imports must occur at the beginning of the file 2013-04-22 07:16:03 +00:00
plugins 0006352: Bookmarking a source in the citation tree creates a blank bookmark. Disallow bookmarking a source in the Citation Tree View, and do not add sources to the history in the Citation Tree View. 2013-06-20 16:43:43 +00:00
test typos 2013-04-19 16:58:24 +00:00
webapp indentation 2013-04-22 07:14:27 +00:00
__init__.py for Python files in the "gramps" (only) sub-tree: 2012-11-27 04:31:14 +00:00
grampsapp.py Take the localization debug info from GrampsLocale instead of locale 2013-04-20 23:08:53 +00:00
version.py Move VERSION, VERSION_TUPLE, major_version from const.py to version.py 2013-03-11 22:44:15 +00:00