Open tbrowder opened 3 weeks ago
Hi Tom, Good point.
The Harfbuzz team supply a set of official DLLs https://harfbuzz.github.io/install-harfbuzz.html.
It would be good to get the HarfBuzz modules working on Windows. Particularly now that PDF::Content depends on it.
I'll get onto it soon.
I've been trying a simple experiment to link against the DLLS. Trying to get a call to hb_version
to work on Windows.
hbtest.c:
#include <stdio.h>
void hb_version(int* major, int* minor, int* micro);
void hbtest(void) {
int major=0, minor=0, micro=0;
hb_version(&major, &minor, µ);
fprintf(stderr, "version is %02d.%0d2.%02d\n", major, minor, micro);
}
Makefile:
all : hbtest.dll
hbtest.dll : hbtest.obj
gcc -shared -Lharfbuzz-win32 -o harfbuzz-win32/hbtest.dll hbtest.obj
-llibharfbuzz-0
$(SRC)/hbtest.obj : hbtest.c
gcc -I $(SRC) -c -o hbtest.obj hbtest.c
No luck so far. I'm coming to the conclusion that this may not be the right approach. I'm thinks that those DLLs are designed to be used with executables such as hb-shape.exe
, which are also included.
So back to the drawing board. PDF::Content installs for me, but PDF::Font::Loader doesn't because it has HarfBuzz as a dependency.
So all you can do on Windows at the moment is use core fonts.
Thanks for the update, David.
-Tom
On Sun, Jul 14, 2024 at 15:04 David Warring @.***> wrote:
So back to the drawing board. PDF::Content installs for me, but PDF::Font::Loader doesn't because it has HarfBuzz as a dependency.
So all you can do on Windows at the moment is use core fonts.
— Reply to this email directly, view it on GitHub https://github.com/pdf-raku/PDF-Content-raku/issues/18#issuecomment-2227468712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH5VVEVXU5LAEKY6EM6RHDZMLKWLAVCNFSM6AAAAABKNU3AL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGQ3DQNZRGI . You are receiving this because you authored the thread.Message ID: @.***>
David, how can I help? Have you looked at the Windows PDF packages at Chocolatey.org? I see a version of Ghostscript there.