Recent

Author Topic: [Solved] Font issue under Mint but not under OpenSuse !  (Read 3451 times)

guest58172

  • Guest
[Solved] Font issue under Mint but not under OpenSuse !
« on: October 01, 2016, 01:51:37 pm »
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

  • Hero Member
  • *****
  • Posts: 14360
  • Sensorship about opinions does not belong here.
Re: Font issue under Mint but not under OpenSuse !
« Reply #1 on: October 01, 2016, 02:08:44 pm »
Set the fontsize as -9 (minus 9) . Difference between points and pixels.
« Last Edit: October 01, 2016, 02:12:39 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

guest58172

  • Guest
Re: Font issue under Mint but not under OpenSuse !
« Reply #2 on: October 01, 2016, 02:18:50 pm »
I speak about the IDE here ;) the field used to change the size only accepts values between 5 and 100.

Thaddy

  • Hero Member
  • *****
  • Posts: 14360
  • Sensorship about opinions does not belong here.
Re: Font issue under Mint but not under OpenSuse !
« Reply #3 on: October 01, 2016, 02:26:38 pm »
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 ;)
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

guest58172

  • Guest
Re: Font issue under Mint but not under OpenSuse !
« Reply #4 on: October 01, 2016, 02:28:23 pm »
And even if I Ctrl+scroll to get a correct size, the code hints size is quite funky too:  %)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Font issue under Mint but not under OpenSuse !
« Reply #5 on: October 01, 2016, 02:31:17 pm »
In trunk the IDE options accept negative sizes (again). Not sure if that affects the hints...

Thaddy

  • Hero Member
  • *****
  • Posts: 14360
  • Sensorship about opinions does not belong here.
Re: Font issue under Mint but not under OpenSuse !
« Reply #6 on: October 01, 2016, 02:35:59 pm »
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.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

guest58172

  • Guest
Re: Font issue under Mint but not under OpenSuse !
« Reply #7 on: October 01, 2016, 03:08:07 pm »
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 ?

 

TinyPortal © 2005-2018