Font.hasGlyphs() works with embeded fonts only.

Specifies whether a provided string can be displayed using the currently assigned font.

quote from Adobe® Flex™ 2 Language Reference

According to the AS3 Help, this method let you know whether a specific string can be displayed using the current font, but it didn’t work.
So I googled.
And I found that it works only with embeded fonts.
AS3 도움말에는 지정한 폰트에서 특정 문자열을 표시할 수 있는지 여부를 알려준다고 되어있는데, 실제로 해보니 안되더군요.
그래서 좀 더 구글해보니…
임베드된 폰트에서만 사용할 수 있는 메소드였네요 ㅠㅠ

Flex 2 Developer’s Guide > Setting character ranges

Comments are closed.