Skip to content

Added support for Freetype, JPEG, Giflib, and Pango on Windows - #620

Closed
3p3r wants to merge 6 commits into
Automattic:masterfrom
3p3r:master
Closed

3p3r wants to merge 6 commits into
Automattic:masterfrom
3p3r:master

Conversation

@3p3r

@3p3r 3p3r commented Sep 4, 2015

Copy link
Copy Markdown

I have only tested this with Visual Studio 2013 (Update 5) x64 build. Following versions of dependencies I have used:

Note that I have not used the same Freetype that comes with GTK+, because it was slightly outdated and I would rather building Freetype from scratch since it uses CMake and it takes literally two minutes to build and install it. After installation include/freetype2 needs to be renamed to include/freetype.

Giflib comes with autoconf scripts for its build management. Honestly the easiest way to build it, is just including it in the source tree. That's how Leptonica builds it as well.

@3p3r

3p3r commented Sep 4, 2015

Copy link
Copy Markdown
Author

Almost forgot, two other things needed to be added in order to get the compilation going:

  1. A dummy unistd.h for Freetype and GifLib.
  2. An implementation for strndup on Windows.

@terrancesnyder

Copy link
Copy Markdown

Holy font batman! +1000 on this.

@iongion

iongion commented Sep 21, 2017

Copy link
Copy Markdown

+1K - I couldnt use node-canvas on windows if not for this issue, mentioning the proper prebuilt GTK bundle

@LinusU

LinusU commented Sep 21, 2017

Copy link
Copy Markdown
Collaborator

@sepehr-laal would you mind rebasing on latest master?

@chearon

chearon commented Sep 21, 2017

Copy link
Copy Markdown
Collaborator

+1K - I couldnt use node-canvas on windows if not for this issue, mentioning the proper prebuilt GTK bundle

It's mentioned on the wiki here. Is this PR still relevant? I didn't think there was anything wrong with the Windows build.

@zbjornson

Copy link
Copy Markdown
Collaborator

GIF support maybe? But if it's added, it should probably be optional like JPEG and SVG.

@3p3r

3p3r commented Sep 21, 2017

Copy link
Copy Markdown
Author

@LinusU it's been a long time since I looked at this PR. I know of a handful of companies and individuals who have production code off of this PR. If you don't mind, I am going to submit a new PR and close this as is for historical references.

@LinusU

LinusU commented Sep 21, 2017

Copy link
Copy Markdown
Collaborator

Sounds good 👍

@zbjornson

Copy link
Copy Markdown
Collaborator

Closing per:

I am going to submit a new PR and close this as is for historical references.

@zbjornson zbjornson closed this Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants