The way to change the size of the true type font without resource reducing.
Posted on 1998-09-09
I created a true type font using CFont::CreateFont function in the
constructor of my own class.
Whenever I change the MDI child window, the font size changes
according to the size of the MDI child window.
The Problem is that the GDI resource is reduced whenever the size
I think that this is caused because of the cache of the
true type font table.
I moved the font variable in my own class member to the local variable
in the function.
And the problem did not occurr again.
But I don't want to call CreateFont function whenever the function is
Is there any other way to change the size of the true type font without
creating the font everytime?
Thanks for your time and effort.