fix: replace wrong attribute in XCharter fontspec #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to compile resume.tex by myself. However, I met an error.
It looks like that an attribute in XCharter fontspec is wrong.
I noticed that XCharter package provides an official fontspec to allow users to use the font directly. So, I copied the content and made it available in this PR. Now it works fine.
One thing I'm still worried about is my texlive distribution doesn't think that XCharter font is available even if XCharter package is installed locally. I think the reason is that xelatex can only find fonts shipped with tex distribution by name, like "Xcharter-Bold.otf". Xelatex can also find a "general" font like "XCharter" if there is a fontspec file, while IfFontExistsTF cannot. If I want to use the system font XCharter, I have to link those otf files to my global font directory to make them available to the whole system.
I think a better way is to just use XCharter font but not check availability, because TexLive and MikTeX both ship XCharter package. I'm not sure whether I should open a new issue.
Some system information:
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Arch Linux) (preloaded format=xelatex)
.Thanks for creating this awesome template!