Hi Guys
I am a bit lost here, I am trying to mesure the text size of a custom widget I am working on, because I want to draw something else in top of it.
Apparently is not working in my 4k screen, but in a regular fullHD screen is working well, I got the right resolution.
this is the way I am using:
I guess I have to divide that for some DPI scale factor, but I cannot find the thing, does someone know what's that value?
Thanks guys
I am a bit lost here, I am trying to mesure the text size of a custom widget I am working on, because I want to draw something else in top of it.
Apparently is not working in my 4k screen, but in a regular fullHD screen is working well, I got the right resolution.
this is the way I am using:
Code:
FontMeasureService = FSlateApplication::Get().GetRenderer()->GetFontMeasureService(); float LineWeight = FontMeasureService->Measure("Hello", TextStyle->Font).X;
Thanks guys
Comment