Codist icon indicating copy to clipboard operation
Codist copied to clipboard

[Suggestion] Add support for additional font customization: Specifying font variations

Open Decimation opened this issue 3 years ago • 5 comments

Regarding font customization:

  • Right now the following font properties can be used:
    • Bold
    • Italic
    • Strikethrough
    • Underline
  • Addditionally, size and stretch can be configured

However, the fonts usually have additional variations as seen below for Roboto Mono:

explorer_7RDpudsdQx

I suggest adding a feature to support specifying a style/variation of the font rather than just the font family itself:

devenv_W5iklpUyMR

For example, a dropdown menu can be added to select the variation of the font.

Decimation avatar Apr 13 '22 09:04 Decimation

Actually I had the same idea as yours while I was adding the font-stretch support. However, I could not figure out how to get and set font style variations via WPF.

If you have any idea, please show me some information, or even better, source code :)

wmjordan avatar Apr 13 '22 09:04 wmjordan

Are you able to use the font file directly? e.g., C:\...\robotomono_light.ttf

I haven't looked into possible solutions yet, but that is my immediate thought. Thanks for the quick response!

Decimation avatar Apr 13 '22 10:04 Decimation

No. I could not access the font file directory. In WPF, the game does not play like that.

wmjordan avatar Apr 13 '22 10:04 wmjordan

No. I could not access the font file directory. In WPF, the game does not play like that.

Is that because of insufficient permissions or a limitation of WPF? Can you prompt the user for the font file?

Either way, I'll do some research of my own.

Decimation avatar Apr 13 '22 10:04 Decimation

Perhaps, it is the limitation of WPF. I am not a master of WPF thus I can not comment too much.

wmjordan avatar Apr 14 '22 06:04 wmjordan

Please download the new beta. image

wmjordan avatar Feb 09 '23 14:02 wmjordan