[Solved] Font issue under Mint but not under OpenSuse ! lazarus / 9-Editor ---------------------------------------------------------------------- guest58172 · 2016-10-01 11:51 This one is really annoying. I've managed to find a trick two years ago but now it's back, I don't know why. The issue is that, under linux Mint (so gtk) all the controls have a correct font size, except SynEdit, even if the size, 9, is correct. See the picture attached. I've never add this issue under OpenSuse (kde). Does anyone knows how to fix this ? ---------------------------------------------------------------------- Thaddy · 2016-10-01 12:08 Set the fontsize as -9 (minus 9) . Difference between points and pixels. ---------------------------------------------------------------------- guest58172 · 2016-10-01 12:18 I speak about the IDE here the field used to change the size only accepts values between 5 and 100. ---------------------------------------------------------------------- Thaddy · 2016-10-01 12:26 Then you need to perform a point to pixel calculation based on your screen resolution or the other way around and set that as the font size. e.g. points = pixels * 72 / 96 on a screen that is 96. (There are 72 points per inch) I trust you can reverse the calculation yourself when needed ---------------------------------------------------------------------- guest58172 · 2016-10-01 12:28 And even if I Ctrl+scroll to get a correct size, the code hints size is quite funky too: ---------------------------------------------------------------------- Martin_fr · 2016-10-01 12:31 In trunk the IDE options accept negative sizes (again). Not sure if that affects the hints... ---------------------------------------------------------------------- Thaddy · 2016-10-01 12:35 Good to know, because that is a bug in my 1.6 and 1.7 (which is also trunk but an older one, so doesn't count as current) It may need explanation that negative and positive values resp. stand for pixels and points. ---------------------------------------------------------------------- guest58172 · 2016-10-01 13:08 I've found again the trick. In the settings the screen detection must be relaunched...And then any synedit editor automagically handles the font size properly again. I can't say why only SynEdit is affected. Mint (Cinnamon desktop) bug or Synedit ?