-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Custom Heading Styles Don't Honor Font Size 11 #1738
Comments
In your screenshot it shows font size 16 though - from what I've seen this only applies to heading styles with font size 11. Any other font size is honored properly (at least, the other sizes I tested - 12, 14 and 16 - all worked fine). Only font size 11 is not. In other words if you create a heading style with font size 11, and apply it to some text the text size will get changed to something other than 11 (even if the underlying text was size 11 to begin with). |
Ah yes, it seems to be whatever your default font size is. My default font size is 11.5 (because I'm wicked old!) So if I set the size of the heading to 11.5, it gets rendered as 20. I'll check it out. Thanks. |
Problem to Solve
Strange issue - it seems that if we create a custom style, of type "heading" with a font size 11, it will ignore the font size. We can set other attributes, such as bold and italic and those are honored but the font size is not.
The strange part is what it does use as the font size instead - I haven't quite figured that out yet. In one test it used font size 14, in another it did 12. The best I can tell, it seems like it might be using the font size of the heading "in front" of it (meaning the heading one spot higher in the list), because the test I did that resulted in font size 12 had a heading above it with font size 12, and the one that resulted in font size 14 had a heading above it w/ font size 14. That part is a total guess though.
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
The style should apply all configured attributes to the selected text, including font size.
Environment (if applicable)
The text was updated successfully, but these errors were encountered: