{"id":347,"date":"2010-07-08T13:05:34","date_gmt":"2010-07-08T11:05:34","guid":{"rendered":"http:\/\/ixdc.net\/blog\/?p=347"},"modified":"2018-05-08T22:25:37","modified_gmt":"2018-05-08T20:25:37","slug":"arabic-parsing-and-shared-fonts","status":"publish","type":"post","link":"https:\/\/ixdc.net\/blog\/2010\/07\/08\/arabic-parsing-and-shared-fonts\/","title":{"rendered":"Arabic Parsing and Shared Fonts"},"content":{"rendered":"<blockquote><p><em>This tutorial uses ActionScript 2.0, for ActionScript 3.0 follow <a href=\"https:\/\/nochump.com\/blog\/archives\/20\" target=\"_blank\" rel=\"nofollow\"><span style=\"color:#EF6596;\">this<\/span><\/a> one ..<\/em><\/p><\/blockquote>\n<p>The following is a step-by-step tutorial for using shared fonts in Flash with the use of <a href=\"https:\/\/ixdc.net\/blog\/2010\/05\/29\/actionscript-2-0-arabic-parsing-v1-4\/\" target=\"_self\"><span style=\"color:#EF6596\">Arabic Parsing<\/span><\/a> solution:<\/p>\n<ol>\n<li>Create New Flash file to store shared fonts, in this case \u201carabic_fonts.fla\u201d<\/li>\n<li>Create new MovieClip symbol, in this case \u201carabic_fonts\u201d and check the option \u201cExport for runtime sharing\u201d, in this case \u201carabic_fonts.swf\u201d\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_01.jpg\" \/>\n<\/div>\n<\/li>\n<li>Edit \u201carabic_fonts\u201d MovieClip and create as many TextFields as you require, each with specific font to be shared\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_03.jpg\" \/>\n<\/div>\n<\/li>\n<li>Select each TextField individually and embed fonts from the properties panel\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_04.jpg\" \/>\n<\/div>\n<\/li>\n<li>Make sure you have checked the Arabic glyphs and you have chosen font name for linkage\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_05.jpg\" \/>\n<\/div>\n<\/li>\n<li>Complie the output movie, save and close \u201carabic_fonts.fla\u201d<\/li>\n<li>Open your rendering Flash file, in this case \u201carabic_as2.fla\u201d <em>located in the same directory with \u201carabic_fonts.fla\u201d<\/em><\/li>\n<li>Create new MovieClip symbol and give it the exact same name for the shared library symbol, in this case \u201carabic_fonts\u201d, then check the option \u201cImport for runtime sharing\u201d, in this case \u201carabic_fonts.swf\u201d\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_06.jpg\" \/>\n<\/div>\n<p>When asked to edit the newly created symbol, make sure that you choose \u201cNo\u201d<\/p>\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_02.jpg\" \/>\n<\/div>\n<\/li>\n<li>Drag and instance of \u201carabic_fonts\u201d MovieClip off-stage\n<div style=\"margin-left:-40px; margin-top:10px;  margin-bottom:10px\">\n<img decoding=\"async\" src=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2\/step_07.jpg\" \/>\n<\/div>\n<\/li>\n<li>Compile the output movie, you should see fonts displayed correctly<\/li>\n<li>Download sample files <a href=\"https:\/\/ixdc.net\/blog\/wp-content\/uploads\/2010\/07\/arabic_shared_fonts_as2.zip\" rel=\"nofollow\"><span style=\"color:#EF6596\">here<\/span><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial uses ActionScript 2.0, for ActionScript 3.0 follow this one .. The following is a step-by-step tutorial for using shared fonts in Flash with the use of Arabic Parsing solution: Create New Flash file to store shared fonts, in this case \u201carabic_fonts.fla\u201d Create new MovieClip symbol, in this case \u201carabic_fonts\u201d and check the option [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,45],"tags":[34,36,5],"class_list":["post-347","post","type-post","status-publish","format-standard","hentry","category-38","category-jul","tag-arabic","tag-as2","tag-flash"],"_links":{"self":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":1,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixdc.net\/blog\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}