I'm trying to draw text on a polygon that is zoomed in and out of
view, the problem is that the quality of the font degrades as I get
closer. This is a port of a pygame program, and there what was done is
that it chooses the fontsize that better mach the current size of the
polygons being draw so it always looks crisp. Is there any way to do
this in pyglet? I don't know, maybe using mipmaping to do it or
something.

Right now what I am doing is creating a document and them a layout for
the texts that needs to be draw and putting them on a batch to be draw
each frame, I wish I could use something that I would not to
reconstruct all of the batch at each frame (for example in pygame we
use only 6,8,10,12 font so a little change in zoom didn't change the
font size).

Another problem that I am having is that in one extreme case the scene
has tons of text, and it is using lots of memory if I try to create
the layouts for the texts and simply doesn't run on my video card
(intel GMA950) probably because OSX allocates only 64mb of video
memory and the python process jumps from 97mb without layouts to 286mb
with the layouts uncommented. It is not much of a big problem because
you would not be able to read them all at the same time, but I will
explain this problem later, when I have the first one figured out.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to pyglet-users@googlegroups.com
To unsubscribe from this group, send email to 
pyglet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to