Is there a possibility to make fonts with layers where the white is on an upper layer (like an opacity mask)?

Bill


On 10/24/2012 11:10 AM, Eduardo Trápani wrote:
[log in to unmask]" type="cite">
[log in to unmask]" type="cite">
The only problem: fontforge gets the svg
fillings wrong.  I've been trying to fix that, I will report if I succeed.

Good luck.  Can you explain how it is getting the fillings wrong?

Yes, take for example S23001.  Instead of I get this inside the font.  I checked the svg and there actually is a filling there.  Inkscape shows it alright (white), but the filesystem preview shows a grey area and fontforge, as you can see, shows a black filling.

If I edit the svg file and get rid of the white fillings (see diff at the bottom[1]) then it works more or less as expected, for some reason the shape is a bit distorted, but still readable: .  Is there a reason for those white fillings?  I mean, would it be ok to remove them all?

Eduardo.

[1] The unified diff for the working S23001 (I just removed two lines):
--- s23001.svg.orig    2011-09-19 12:00:39.000000000 -0300
+++ s23001.svg    2012-10-24 13:00:58.000000000 -0200
@@ -12,11 +12,9 @@
   <path id="path2818" d="m 7.5,0 -7,7 14,0 -7,-7 z" fill="#000000" />
   <path id="path2831" d="M 4,7 6,7 6,14 4,14 4,7 z" fill="#000000" />
   <path id="path2833" d="m 9,7 2,0 0,7 -2,0 0,-7 z" fill="#000000" />
-  <path id="rect2821" d="M 6,7 6,14 9,14 9,7 6,7 z" fill="#ffffff" />
   <path id="path2897" d="m 19.5,0 -7,7 14,0 -7,-7 z" fill="#000000" />
   <path id="path2899" d="m 16,7 2,0 0,7 -2,0 0,-7 z" fill="#000000" />
   <path id="path2901" d="m 21,7 2,0 0,7 -2,0 0,-7 z" fill="#000000" />
-  <path id="path2903" d="m 18,7 0,7 3,0 0,-7 -3,0 z" fill="#ffffff" />
   <path id="rect2926" d="M 0 16 L 0 18 L 27 18 L 27 16 L 0 16 z " fill="#000000" />
 </g>
 </svg>