Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(811)

Unified Diff: mf/feta-braces.mf

Issue 571780043: Issue 5806: Tweak mf files to avoid FontForge internal overlap error
Patch Set: Indentation, 2nd attempt Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mf/feta-arrowheads.mf ('k') | mf/feta-clefs.mf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mf/feta-braces.mf
diff --git a/mf/feta-braces.mf b/mf/feta-braces.mf
index 9d8c68f469221a8359fc8b9c484118917e8eb1bd..cf0628d9f0e640bfe73ef3eeac40930476d54599 100644
--- a/mf/feta-braces.mf
+++ b/mf/feta-braces.mf
@@ -27,10 +27,11 @@ code := 64;
braces_per_font := 64;
def draw_brace (expr height_sharp, width_sharp, slt_sharp, brace_number) =
- save pendir, height, width, thin, thick, slt, pat;
+ save pendir, height, width, thin, thick, slt, pat, ta, paux;
save penangle;
pair pendir;
- path pat;
+ path pat, paux;
+ numeric ta;
height# := height_sharp;
width# := width_sharp;
@@ -61,19 +62,20 @@ def draw_brace (expr height_sharp, width_sharp, slt_sharp, brace_number) =
penlabels (1, 2, 3);
labels (0);
- pat := z2r
+ paux := z0
+ -- z0 shifted (width, 0);
+ pat := z1r{pendir}
+ .. z2r
.. simple_serif (z3r, z3l, 90)
.. z2l
- .. z1l{dir (angle (z1r - z1l) - 90)}
- .. z0{down}
- .. z1r{-dir (angle (z1l - z1r) + 90)}
- .. cycle;
- pat := subpath (0, 5) of pat
- -- subpath (6, 7) of pat
- .. cycle;
-
- fill pat;
- fill pat yscaled -1;
+ .. z1l{-pendir}
+ .. z0{down};
+ ta = xpart (pat intersectiontimes paux);
+ pat := subpath (ta, length pat) of pat;
+
+ fill reverse pat yscaled -1
+ .. pat
+ -- cycle;
fet_endchar;
enddef;
« no previous file with comments | « mf/feta-arrowheads.mf ('k') | mf/feta-clefs.mf » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b