Fonts: Extend styling options (weight, slant, density, etc.)#5013
Fonts: Extend styling options (weight, slant, density, etc.)#5013swharden merged 14 commits intoScottPlot:mainfrom
Conversation
…ve the chart in a radar.
…/italic shims for compatibility.
…rawn above the chart in a radar." This reverts commit 7177134.
|
FYI I'm updating the demos to use Calibri because Arial Narrow isn't working with bold and italic on my system. Weird! |
|
Thanks @aespitia and @Christoph-Wagner! I'm merging this now. I added a few cookbook recipes like this too:
|
|
Hey @aespitia, a quick comment about this solution... I don't think we should store much plot-specific state in the static I haven't figured it out exactly yet, but I'm going to try to move that default style state into the Plot... or add a ResetDefaults() and call it before every cookbook recipe. It's probably a niche case, but it would be nice to solve it elegantly. I welcome any suggestions you may have about the best way to go about this! You don't need to come up with a PR - I'll make a quick fix so I can publish new packages tonight and we can refine this behavior if/as needed. Thanks! |
|
Typical me, I commented before thorough investigation and got my assessment wrong. Sorry for the noise about legends! There is an issue (see MarkerLegend cookbook recipe below) but I don't think it's related to static storage of defaults More info here: #5006 (comment) |
I think this PR has some good updates, but not sure if it fixes whatever issue you saw? Are you talking about the legend items changing from rectangles to circles? from looking at the code before, it looked like for that particular graph type, the default should have been circles originally, but were rendering as rectangles. I think i had looked at the implementation of that particular plot type, and it seemed like it was adding FilledCircle as the legend marker type. So, I do think there was a change, but I think the rectangle was bugged before if you're looking at before and after? |


This is a branch from #4873, where @Christoph-Wagner added support for more specialized fonts. Historically, the font resolver would only default to "Normal" or "Regular" width fonts, and would not appropriately find Condensed and other font widths. This PR updates that PR with some notes/feedback from @swharden in order to make primitive types
Sample usage with a system installed font
using Arial Narrow