jenny.venus:
> Now most screens support HiDPI. I’ve noticed that the edit status area scales correctly and fills the entire line height when text is zoomed, but my custom XPM display area does not. Its size is fixed, so the XPM image cannot stretch to fill the full line height after font scaling.
SciTE offers the scale command to resize dimensions based on screen scaling. For example, this setting automatically applies the scaling factor to the starting width:
position.width=$(scale 576)
> I’ve been using Scintilla since the days of MFC and VC6.0. Back then, everything was configured with hardcoded settings, and I never learned the modern configuration file approach. I would like to ask how to make the XPM image fully occupy the entire line height and scale dynamically with the line height.
Scintilla will not automatically resize images as that often looks poor. You should draw versions of your icons in different sizes then set the most appropriate images based on the scaling factor and line height. For very simple geometric figures, you can use code to draw that figure into a bitmap then send that to Scintilla.
Neil