mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #468] format_set_font_name does not work for Persian font. #365
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#365
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 @mehranj73 on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/468
Originally assigned to: @jmcnamara on GitHub.
My problem also happend in Rust lang and setting font_charset to 178 and font_family to 0 fix my problem. I don't know how to do the same thing in your library. I'm using "B Nazanin" and "B titr" fonts.
https://github.com/jmcnamara/rust_xlsxwriter/issues/125
@jmcnamara commented on GitHub (Feb 4, 2025):
The APIs you need are
They are public, just not documented because they are rarely required.
@mehranj73 commented on GitHub (Feb 4, 2025):
Thanks for replying. I actually tried these two methods and didn't work. I also open the excel file as a zip file and didn't see the changes to charset and font family.
@jmcnamara commented on GitHub (Feb 4, 2025):
My bad. I hadn't added the code to use
font_charset. I've pushed it to main so you can try it.Here is an example:
Output:
Does that look correct?
@mehranj73 commented on GitHub (Feb 4, 2025):
I'm a newbie. Would it work if I download the library using vcpkg ?
@jmcnamara commented on GitHub (Feb 4, 2025):
I can wrap it up into a vcpkg but it will take a few days.
@mehranj73 commented on GitHub (Feb 9, 2025):
Is version 1.1.9 has the new changes in vcpkg?
@jmcnamara commented on GitHub (Feb 9, 2025):
No. Not yet.
@mehranj73 commented on GitHub (Feb 10, 2025):
I have been trying "Using CMake for Microsoft Visual Studio" in this tutorial for a week and I always get "
No package 'zlib' found" error.@jmcnamara commented on GitHub (Feb 11, 2025):
I have submitted a request to include the updated version, v1.2.0, in vcpkg: https://github.com/microsoft/vcpkg/pull/43758
@jmcnamara commented on GitHub (Feb 11, 2025):
These changes are now upstream in vcpkg libxlsxwriter package version 1.2.0.
Could you test that and let me know if is fixed. Thanks.
@mehranj73 commented on GitHub (Feb 11, 2025):
The last version still is 1.1.9 in vcpkg.
@jmcnamara commented on GitHub (Feb 11, 2025):
I don't know how long it takes to become available. The upgrade patch was merged upstream yesterday.
@jmcnamara commented on GitHub (Feb 13, 2025):
I don't know when/how that gets updated but if you clone and run vcpkg from GitHub you can install v1.2.0.
@mehranj73 commented on GitHub (Feb 13, 2025):
Works fine. I tested it with two different fonts. C++ is really hard. I love how Rust's, Python's and Java's package managers are simpler. Thanks, You can close the issue if you want.