dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
753 stars 300 forks source link

Fontsize change doesn't bring any results in DrawText3D #148

Closed adamfierek closed 4 years ago

adamfierek commented 6 years ago

DrawText3d method takes a fontSize argument which seems to be not working. How to change font size using this method?

GianlucaGrotto commented 4 years ago

I have the same problem, is there any one can help to solve?

adamfierek commented 4 years ago

I don't use SharpGL anymore. Offscreen rendering in C++ and texture transfer are bringing better performance results

GianlucaGrotto commented 4 years ago

ok, I partialy solved scaling the text, but in not so satisfing.

dwmkerr commented 4 years ago

I'm looking at this now

dwmkerr commented 4 years ago

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.

GianlucaGrotto commented 4 years ago

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 .

GianlucaGrotto commented 4 years ago

is there a way to get the region size of the text?