Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Matthew Brincke
On Thursday, 18 February 2016, 17:23 UTC, zyx wrote: > On Thu, 2016-02-18 at 16:43 +, Leonard Rosenthol wrote: >> In order to access system fonts, you will need to write a bunch of >> Mac-Specific platform code (similar to what exists for Win, IIRC). >> The code used to exist in PoDoFo,

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Leonard Rosenthol
In order to access system fonts, you will need to write a bunch of Mac-Specific platform code (similar to what exists for Win, IIRC). The code used to exist in PoDoFo, but was removed. Leonard On 2/18/16, 10:08 AM, "Peter Petrov" wrote: >Yes, I've patched a little

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Peter Petrov
Yes, I've patched a little PoDoFo and podofotxt2pdf. Main idea is to use directly Freetype library like that: FT_Library library = document.GetFontLibrary(); FT_Face face = 0; FT_Error error = FT_New_Face( library, fileName.GetString(), 0, ); // where fileName is

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Peter Petrov
On 18.02.2016 14:45, zyx wrote: > Hi, > it's freetype library, which is used for manipulation of fonts. My > Windows build doesn't have fontconfig, and it can embed "any" TTF font > provided by GDI. > > I think this is the case when it's better to try than to guess. Mac > builds can work

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Peter Petrov
Yes, you are right. Sorry. On 18.02.2016 17:04, Leonard Rosenthol wrote: > Are you sure? Last I checked FreeType was pre-installed on Mac OS X. > > > > > On 2/18/16, 7:43 AM, "Peter Petrov" wrote: > >> I just would like to note that libfreetype is also optional package >>

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Leonard Rosenthol
Are you sure? Last I checked FreeType was pre-installed on Mac OS X. On 2/18/16, 7:43 AM, "Peter Petrov" wrote: >I just would like to note that libfreetype is also optional package >(similar to XQuartz), and it is not installed out from the box. >I found Core Text API

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Peter Petrov
I just would like to note that libfreetype is also optional package (similar to XQuartz), and it is not installed out from the box. I found Core Text API https://developer.apple.com/library/mac/documentation/StringsTextFonts/Conceptual/CoreText_Programming/Overview/Overview.html On 18.02.2016

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Leonard Rosenthol
I haven’t looked at the PoDoFo code in a while, but IIRC zyx is correct that the FreeType code will work for both Mac and Win and should be just fine. Check the Mac build configurations. There used to be native Mac code for font handling but that was removed a while back when Apple dropped

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread zyx
On Thu, 2016-02-18 at 13:18 +0300, Peter Petrov wrote: > Thank you for the quick answer. > As I understand, PoDoFo without fontconfig can't embed any fonts > (except  > base14 fonts)? Hi, it's freetype library, which is used for manipulation of fonts. My Windows build doesn't have

Re: [Podofo-users] Font API on Apple

2016-02-18 Thread Peter Petrov
On 18.02.2016 11:59, zyx wrote: > On Thu, 2016-02-18 at 10:55 +0300, Peter Petrov wrote: >> But out from the box the modern Mac OSX (10.9+) doesn't have >> fontconfig installed. > Hi, > fontconfig is an optional dependency, PoDoFo can be built without it. > Would the functionality provided