Strange text artifacts in menu.

16 views
Skip to first unread message

Joseph Marlin

unread,
Jul 16, 2011, 1:18:54 PM7/16/11
to cocos-...@googlegroups.com
Please see the attached file for an example of my problem. Note that it is not a problem when using a font like Arial. I'm using this font in the image: http://www.dafont.com/font-comment.php?file=planet_space

I guess what I'm asking is, is this an issue with Cocos or with the font, and either way, what might I do to resolve the issue.

Thanks!
artifacts.PNG

claudio canepa

unread,
Jul 16, 2011, 3:35:13 PM7/16/11
to cocos-...@googlegroups.com
Cocos gets font functionality from pyglet, and I don't remember an artifact issue there.

It is not uncommon that a font downloaded from the internet don't renders properly in one or another backend, especially with old fonts (in your case a 1998 font)
Sometimes loading the font with a font editor you can spot problematic glyphs and correct them, but usually is easier to replace with another font.

--
claudio

PD: for files sized above 20KB aprox, it is better if you upload somewhere (paste bins, bitbucket, ... ) and post the link, instead of attaching the file.

---

Peter Enerccio

unread,
Jul 16, 2011, 4:08:05 PM7/16/11
to cocos-...@googlegroups.com
Problem is with certain fonts and anti aliasing, experiment with
another size, it will work.
I had the same issues.

2011/7/16 Joseph Marlin <joseph....@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "cocos2d discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cocos-discuss/-/DH612XcYF0gJ.
> To post to this group, send email to cocos-...@googlegroups.com.
> To unsubscribe from this group, send email to
> cocos-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cocos-discuss?hl=en.
>

Joseph Marlin

unread,
Jul 19, 2011, 8:39:50 AM7/19/11
to cocos-...@googlegroups.com
I hadn't even noticed that that font was so old! Thanks! I will try different sizes as Enerccio suggested or simply get a new font altogether.
Reply all
Reply to author
Forward
0 new messages