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
Does not produce image with desired font #4052
Comments
https://sharp.pixelplumbing.com/install#fonts
Please see #2838 You'll need to ensure the named font is made available via the OS. |
What do you mean by "made available via the OS"? The fonts that I was trying to load were installed locally on my machine even though I had changed the actual file name to |
The |
@gtkpr Were you able to make any progress with this? |
I had stopped trying as you said that it was unsupported? I have since found another solution. Out of curiosity, it is supported? |
Thanks for the update, you are correct, |
Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?
npm install sharp
completes without error.node -e "require('sharp')"
completes without error.If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?System:
OS: Windows 11 10.0.22631
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 19.37 GB / 31.92 GB
Binaries:
Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 10.4.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
sharp: ^0.33.3 => 0.33.3
What are the steps to reproduce?
node index.js
What is the expected behaviour?
Render an image of text in the desired font
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
Copying the code above should allow anybody to replicate this issue.
Please provide sample image(s) that help explain this problem
The text was updated successfully, but these errors were encountered: