You could try varying the width and height of the vgui label containing the text. I think the methods are SetWidth and SetHeight. I can't remember if these take floats though, so may not be as smooth as what you need
On May 3, 2009 3:52 PM, "Richard Slaughter" <[email protected]> wrote: Hi List, I'm looking to make a hud element where the text being displayed shrinks down in size smoothly over time. So far I've discovered that DrawSetTextScale only works for Bitmap fonts, which would be nice to avoid so that it will work with the existing ttf fonts that we're using. I'm assuming that changing the font won't yield a smooth enough result, as I'm aiming for a 'zooming out' type effect, so I was thinking that it would be easiest to draw the text on to a surface of some sort, then scale that down over time. Is it possible to do that with a procedural material, and if so can someone point me in the right direction as I can't see how to use any of the text drawing functions in that context. Any other ideas for where I should be looking? Thanks, Rich _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

