Sign in to follow this  

about Font

Recommended Posts

hello,everybody ,i am AlanWu.
I got some questions here.Please help me.
I want a font drawer,i tried ID3DXFONT ,it is so-so, just so-so.
And I think its speed is good enough.
But i want to change the spacing between the character and the spacing between line.And some special effect,e.g. stroke ,shadow,light.
Some people said, move up,down,left,right each 1 pixel and draw then draw the middle one,it can be stroke.I tried this method, but it looks a little bit strange. Does anybody have better method?
ID3DXFONT can't change the line spacing,so i want to make a flexible font by myself.And i have a look the source code of CFont ,it use GDI put all the character into a texture,but it can only draw ASCII character,i search about Chinese character,Chinese character is called GB2312 ,but it has 8187 character in GB2312 ,should i put 8187 character into a texture?I think it is impossible,do i have other way to do this?
Thanks everybody very much!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this