Default font size lazarus / 31-LCL ---------------------------------------------------------------------- ps · 2017-12-13 16:54 I need paint bigger and smaller fonts based on "default" font. So how to get real "default" font size multiplatform and multi DPI. Default Font.Size and Font.Height is 0. So how to get real size and work with it. ---------------------------------------------------------------------- lainz · 2017-12-13 17:01 Here you go: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i FBaseHeight := abs(GetFontData(Font.Reference.Handle).Height); ---------------------------------------------------------------------- Ramona G. Smith · 2017-12-13 17:14 Thanks Lainz! I was also looking for fonts. This is useful stuff. ---------------------------------------------------------------------- ps · 2017-12-13 17:33 thanks lainz. Full code for Font.Size: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i RealFontSize := Round((- GetFontData(b.Font.Handle).Height * 72 / b.Font.PixelsPerInch)) Tested only on Windows 10 with different scale and with multimonitor DPI (Font.Size is allways same). Font.Height is changing to real pixels. Update: Lol now I see "bug" in my code, forgot Font.Reference.Handle from your code and code works. What's difference?