[WIP] Update fonts CSS code to respect CSS standard specs #13143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #13084
This change all CSS code for elegant fonts. This needed to also remove some lines on main darktable theme. Lines removed were redundant and unuseful as they all inherit from line 240 with same setting.
I tested changes (on Japan language due to IPAPGothic font set and on Ukrainian one as well as non-Cyrillic language like French) on many parts and didn't see any changes except one:
Now, code use correct way to handle font with CSS, starting from real family, then set light or bold or medium or condensed with font-weight and font-stretch settings.
@victoryforce, @Mark-64 and @dterrahe: your reviews are more than welcomed, especially to test if it's ok on Windows as I can test that part. Be sure to check #13084 issue of course and as far as possible with both Pango release pointed (the one who have the issue and the one who have not). I hope that new code will work with both versions.
@Mark-64: another thing, good if you can check if that PR do not break your fix related to last one on that PR: #7671