Skip to content
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

Setting Font Style to Bold not working on Apple Numbers (Big Sur) #1059

Closed
btnmasher opened this issue Nov 13, 2021 · 2 comments
Closed

Setting Font Style to Bold not working on Apple Numbers (Big Sur) #1059

btnmasher opened this issue Nov 13, 2021 · 2 comments
Labels
confirmed This issue can be reproduced

Comments

@btnmasher
Copy link

btnmasher commented Nov 13, 2021

Description

Upgrading from an old 1.3 version of Excelize to 2.4.1 to gain the StreamWriter feature, setting a cell style as described by the documentation results in the bold styling not displaying in Apple Numbers on Big Sur version of MacOS. Other styling options such as Alignment and Font Color are working. Viewing the resulting excel file in Google Sheets does display the formatting as expected.

Steps to reproduce the issue:

  1. Start a write flow using StreamWriter
  2. Create a NewStyle() with {"font":{"bold":true},"alignment":{"horizontal":"center"}}
  3. Allocate some excelize.Cell{} structs, setting each StyleID with the previously created style, and add them to a slice
  4. Use SetRow() to write the slice to a row (in my case, the row begins at "C1")
  5. Flush and Save the file
  6. Open the file in Apple Numbers and observe the styling.

Describe the results you received:

The cells in the row are styled with the correct alignment, but not the correct Bold font styling. (font colors also work)

Describe the results you expected:

The cells row to be styled with the correct Bold font styling.

Output of go version:

go version go1.17.2 darwin/amd64

Excelize version or commit ID:

2.4.1

Environment details (OS, Microsoft Excel™ version, physical, etc.):

MacOS Big Sur

@xuri xuri added the confirmed This issue can be reproduced label Nov 13, 2021
@xuri xuri closed this as completed in adecf44 Nov 13, 2021
@xuri
Copy link
Member

xuri commented Nov 13, 2021

Thanks for your issue, I have fixed it, please upgrade to the master branch code, and this patch will be released in the next version.

@btnmasher
Copy link
Author

Worked great, thanks!

jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed This issue can be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants