Closed adamfierek closed 4 years ago
I have the same problem, is there any one can help to solve?
I don't use SharpGL anymore. Offscreen rendering in C++ and texture transfer are bringing better performance results
ok, I partialy solved scaling the text, but in not so satisfing.
I'm looking at this now
OK I've double checked - the font height is passed to the CreateFont
function, but the underlying wglUseFontOutlines
function doesn't actually care about the size of the font, it just creates the geometry. The only way to scale the font is by performing a scale transformation.
I've removed the parameter and updated the samples.
Thks
Il Ven 10 Lug 2020, 18:16 Dave Kerr notifications@github.com ha scritto:
OK I've double checked - the font height is passed to the CreateFont function, but the underlying wglUseFontOutlines function doesn't actually care about the size of the font, it just creates the geometry. The only way to scale the font is by performing a scale transformation.
I've removed the parameter and updated the samples.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dwmkerr/sharpgl/issues/148#issuecomment-656759858, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACML3BCY3T3327KBMEVZNNLR245EBANCNFSM4FALJV2A .
is there a way to get the region size of the text?
DrawText3d method takes a fontSize argument which seems to be not working. How to change font size using this method?