A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: font hole problem continued

  1. #1

    font hole problem continued

    Hello,
    Since no one has responded to my question, I thought maybe further detail of my problem would help. Here is a .swf file with a background rectangle, then two font characters, a 'g' from a real Flash font, and an 'A' from my custom font.

    Why does the hole in the g show up, but the hole in the 'A' does not? I cannot tell what the difference is.

    Thanks for any help!
    Bobito
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    the points on the outside curve are listed in clockwise order for the g and the A.
    The inner curve on the g is ccw, while on the A it is cw as well

    Musicman

  3. #3
    Ugh, I was afraid of that. So, it matters? Do outsides have to be cw and insides ccw? Or do they just have to be opposite one another?

    Is the best way to determine Clockwise-ness by comparing the cross products of the edges? I read that that doesn't work for self-intersecting polygons. Not that I will have any self-intersecting font characters.

    Thanks!
    Bob

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    I can probably help you with some code that I was using to convert lots of T1 fonts - just contact me via PM or board email

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center