DStep rocks [was Example of using C API from D?]
Russel Winder
russel at winder.org.uk
Sun Sep 2 17:49:45 UTC 2018
On Sun, 2018-09-02 at 18:28 +0100, Russel Winder wrote:
>
[…]
> It turns out that the GIR file is not usable, and so the girtod route
> is not feasible. I shall try the DStep route. Failing that it seems
> there is
>
> https://github.com/WebFreak001/fontconfig-d
>
> which is a manual transform of a snapshot of the C API, so not an
> ideal
> way, but a definite backstop position. It seems someone has trodden
> the
> "using Fontconfig in D" path before me.
I compiled DStep master/HEAD (v0.2.3-16-g1308991) against LLVM 6.0 and
it seems to have done a rather splendid job of creating a D binding to
Fontconfig. Low-level obviously, but Fontconfig is seriously low level
anyway.
Now to work out how to make the project auto generate this D module so
as to avoid having it in the repository, and potentially inconsistent
with the platform in use.
--
Russel.
===========================================
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road m: +44 7770 465 077
London SW11 1EN, UK w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20180902/b6548770/attachment.sig>
More information about the Digitalmars-d-learn
mailing list