mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #282] Change size of outline symbols? #226
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @znakeeye on GitHub (Apr 1, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/282
Originally assigned to: @jmcnamara on GitHub.
Please pay attention to the size of the symbols below.
libxlsxwriter:

old document (wanted):

These two documents seem to have a different default style. I.e. the second one has "Arial 8" and
libxlsxwriterhas "Calibri 11".Looking at the
worksheet_outline_settingsit doesn't take aformatargument. Ideas?@jmcnamara commented on GitHub (Apr 1, 2020):
You need to create a small compilable C program that demonstrates the issue.
@jmcnamara commented on GitHub (Apr 1, 2020):
You should also verify that what you are seeing isn't Excel's default behaviour, i.e., not a libxlsxwriter issue.
@znakeeye commented on GitHub (Apr 1, 2020):
Well, I don't know how to reproduce this in libxlsxwriter, since I cannot find an API that allows me to change the font for the outline symbols.
In Excel, you can accomplish this:
Data->Group->Group...Aand1to select everything.@znakeeye commented on GitHub (Apr 6, 2020):
Please advise!
The way I see it, we are lacking an API to alter the default style. I understand that style is important for measuring etc, but perhaps we could have a way to set it immediately on creating a worksheet?
@jmcnamara commented on GitHub (Apr 15, 2020):
You may be able to do what you want by setting the default row height via
worksheet_set_default_row():https://libxlsxwriter.github.io/worksheet_8h.html#a74121de7c4f67639b30f302d4af48eb4
For Arial 8 the default row height would be 11.25.
@znakeeye commented on GitHub (Apr 16, 2020):
Thanks. That actually works. I guess Excel internally sets the default row height like that when selecting the entire sheet.
How did you come up with the number
11.25?@jmcnamara commented on GitHub (Apr 16, 2020):
I set the font to Arial 8 using the steps that you described and then checked the height by mouseover in Excel: