-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style font setting doesn't appear to work. #27
Comments
Hi, Style s = new Style();
s.CurrentFont.Scheme = Style.Font.SchemeValue.none;
s.Append(Style.BasicStyles.Font("Arial Black", 11)); I'm not entirely sure whether it is a bug or just a feature that should be better documented. |
Hi, 18.18.33 ST_FontScheme (Font scheme Styles)Defines the font scheme, if any, to which this font belongs.
It seems to be related to the theme of the worksheet. But to be honest, normally I completely neglect this, because I don't know anyone that actively uses theming. PicoXLSX and NanoXLSX are not even writing a theme definition in the current version (what is valid). The outcome of this is, if other fonts than the defined minor and major fonts (Calibri and Calibri Light) are set as font faces, then the scheme should always be 'None'. |
The issue should be fixed automatically with the new release v3.3.0 (NuGet package available in some minutes).
The scheme value can be overwritten indeed after defining the font name. |
I've taken from example, code where its setting font like so:
And then call
.AddNextCell("text", s);
No matter what I do, it always renders the text as "Calibri". Interestingly it does seem to take the font size from that, and render text smaller (I'm actually specifying "Arial Narrow" and 8 for the font) but doesn't change the font itself.
this is with version 3.2.1
The text was updated successfully, but these errors were encountered: