{"id":3326,"date":"2014-05-29T07:26:02","date_gmt":"2014-05-29T07:26:02","guid":{"rendered":"http:\/\/www.readytext.co.uk\/?p=3326"},"modified":"2014-06-01T16:04:31","modified_gmt":"2014-06-01T16:04:31","slug":"funky-effects-with-arabic-glyphs","status":"publish","type":"post","link":"https:\/\/www.readytext.co.uk\/?p=3326","title":{"rendered":"Funky effects with Arabic glyphs!"},"content":{"rendered":"<p>Over the last few evenings I&#8217;ve been exploring B\u00e9zier curves and effects that can be achieved through &#8220;flattening&#8221; glyph paths. I found a great C++ library called <a href=\"http:\/\/www.angusj.com\/delphi\/clipper.php\">Clipper<\/a> which lets you perform a number of interesting operations on polygons. After you flatten a glyph path you can pass it to Clipper to do all sorts of &#8220;funky&#8221; things, such as offsetting the Laam-Alef glyph path in the example shown below. The PDF file was generated by the <a href=\"http:\/\/libharu.org\/\">HARU PDF library<\/a> (written in C) and glyph outlines were obtained using <a href=\"http:\/\/www.freetype.org\/\">FreeType<\/a> (also written in C). Well, it&#8217;s more interesting than watching the rubbish on TV!<\/p>\n<p><a href=\"http:\/\/readytext.co.uk\/files\/lamalef.pdf\">Download PDF<\/a><\/p>\n<p><iframe src=\"https:\/\/docs.google.com\/gview?url=http:\/\/readytext.co.uk\/files\/lamalef.pdf&#038;embedded=true\" style=\"width:100%; height:600px;\" frameborder=\"0\"><\/iframe><\/p>\n<p>Quick update: Another example with multiple paths in the glyph.<\/p>\n<p> <a href=\"http:\/\/readytext.co.uk\/files\/araboffsetting.pdf\">Download PDF<\/a><\/p>\n<p><iframe src=\"https:\/\/docs.google.com\/gview?url=http:\/\/readytext.co.uk\/files\/araboffsetting.pdf&#038;embedded=true\" style=\"width:100%; height:600px;\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the last few evenings I&#8217;ve been exploring B\u00e9zier curves and effects that can be achieved through &#8220;flattening&#8221; glyph paths. I found a great C++ library called Clipper which lets you perform a number of interesting operations on polygons. After you flatten a glyph path you can pass it to Clipper to do all sorts [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,16],"tags":[],"class_list":["post-3326","post","type-post","status-publish","format-standard","hentry","category-arabic","category-typesetting-and-algorithms"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3326"}],"version-history":[{"count":11,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3326\/revisions"}],"predecessor-version":[{"id":3344,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3326\/revisions\/3344"}],"wp:attachment":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}