Open LearnCocos2D opened 9 years ago
Related to #917
We should have a general resource preview for supported types.
working on an implementation of #917 now, implementing at the InspectorValue level so that implementing for font previews can be added easily
Got previews working for system fonts.
Tried a few things for user fonts but haven't quite sorted it out. I know the CCLabelTTF class uses CTFontManager to get the fonts, but I'm not sure if I can access the same already registered fonts or if it would need to be implemented again for the MenuItems to access it outside of the cocos2d.xcodeproj.
Does it make sense to do a pull request for what I've got working so far?
Looks good so far, ill review pull
Currently neither Truetype fonts nor bitmap fonts show a preview image when the file is selected in the File View.
For bitmap fonts I would expect to see at least the atlas image as is. For truetype fonts and in general I would expect a similar example as in FontBook.app (ABCD...abcd....1234...).