Unicode font subsets


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. [Embed(systemFont="Helvetica", fonName="Helv",
  2. mimetype="application/x-font", unicodeRange="U+002C-U+0039, U+0041-U+005A]")]
  3. var helvetica:Class;
  4. Font.registerFont(helvetica);
  5.  
  6.  
  7. U+0020-U+0040, /* Punctuation, Numbers and Symbols */
  8. U+0041-U+005A, /* Upper-Case A-Z */
  9. U+005B-U+0060, /* Punctuation and Symbols */
  10. U+0061-U+007A, /* Lower-Case a-z */
  11. U+007B-U+007E; /* Punctuation and Symbols */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.