pdf2json 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +9 -0
- data/bin/.gitkeep +0 -0
- data/ext/extconf.rb +30 -0
- data/lib/pdf2json.rb +8 -0
- data/pdf2json-0.52-source/AUTHORS +24 -0
- data/pdf2json-0.52-source/CHANGES +11 -0
- data/pdf2json-0.52-source/Makefile +84 -0
- data/pdf2json-0.52-source/Makefile.in +84 -0
- data/pdf2json-0.52-source/aclocal.m4 +274 -0
- data/pdf2json-0.52-source/aconf-win32.h +86 -0
- data/pdf2json-0.52-source/aconf.h +42 -0
- data/pdf2json-0.52-source/aconf.h.in +41 -0
- data/pdf2json-0.52-source/autom4te.cache/output.0 +6908 -0
- data/pdf2json-0.52-source/autom4te.cache/requests +76 -0
- data/pdf2json-0.52-source/autom4te.cache/traces.0 +466 -0
- data/pdf2json-0.52-source/config.log +1259 -0
- data/pdf2json-0.52-source/config.status +1050 -0
- data/pdf2json-0.52-source/configure +6908 -0
- data/pdf2json-0.52-source/configure.ac +93 -0
- data/pdf2json-0.52-source/doc/pdffonts.1 +130 -0
- data/pdf2json-0.52-source/doc/pdffonts.cat +107 -0
- data/pdf2json-0.52-source/doc/pdffonts.hlp +117 -0
- data/pdf2json-0.52-source/doc/pdfimages.1 +102 -0
- data/pdf2json-0.52-source/doc/pdfimages.cat +92 -0
- data/pdf2json-0.52-source/doc/pdfimages.hlp +101 -0
- data/pdf2json-0.52-source/doc/pdfinfo.1 +158 -0
- data/pdf2json-0.52-source/doc/pdfinfo.cat +119 -0
- data/pdf2json-0.52-source/doc/pdfinfo.hlp +129 -0
- data/pdf2json-0.52-source/doc/pdftoppm.1 +115 -0
- data/pdf2json-0.52-source/doc/pdftoppm.cat +105 -0
- data/pdf2json-0.52-source/doc/pdftoppm.hlp +114 -0
- data/pdf2json-0.52-source/doc/pdftops.1 +229 -0
- data/pdf2json-0.52-source/doc/pdftops.cat +221 -0
- data/pdf2json-0.52-source/doc/pdftops.hlp +231 -0
- data/pdf2json-0.52-source/doc/pdftotext.1 +137 -0
- data/pdf2json-0.52-source/doc/pdftotext.cat +120 -0
- data/pdf2json-0.52-source/doc/pdftotext.hlp +133 -0
- data/pdf2json-0.52-source/doc/sample-xpdfrc +91 -0
- data/pdf2json-0.52-source/doc/xpdf.1 +513 -0
- data/pdf2json-0.52-source/doc/xpdf.cat +476 -0
- data/pdf2json-0.52-source/doc/xpdf.hlp +489 -0
- data/pdf2json-0.52-source/doc/xpdfrc.5 +480 -0
- data/pdf2json-0.52-source/doc/xpdfrc.cat +474 -0
- data/pdf2json-0.52-source/doc/xpdfrc.hlp +479 -0
- data/pdf2json-0.52-source/fofi/.DS_Store +0 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.cc +156 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.h +57 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.cc +994 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.h +36 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.cc +2027 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.h +174 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.cc +252 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.h +59 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.cc +2603 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.h +233 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.o +0 -0
- data/pdf2json-0.52-source/fofi/Makefile +70 -0
- data/pdf2json-0.52-source/fofi/Makefile.dep +0 -0
- data/pdf2json-0.52-source/fofi/Makefile.in +70 -0
- data/pdf2json-0.52-source/fofi/libfofi.a +0 -0
- data/pdf2json-0.52-source/fofi/vms_make.com +0 -0
- data/pdf2json-0.52-source/freetype.win32/.DS_Store +0 -0
- data/pdf2json-0.52-source/freetype.win32/include/.DS_Store +0 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftconfig.h +528 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftheader.h +780 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftmodule.h +32 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftoption.h +733 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftstdlib.h +173 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/freetype.h +3919 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftadvanc.h +179 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbbox.h +94 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbdf.h +209 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbitmap.h +227 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftcache.h +1128 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftchapters.h +103 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftcid.h +166 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fterrdef.h +244 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fterrors.h +206 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgasp.h +120 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftglyph.h +613 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgxval.h +358 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgzip.h +102 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftimage.h +1313 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftincrem.h +353 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlcdfil.h +213 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlist.h +277 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlzw.h +99 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmac.h +274 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmm.h +378 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmodapi.h +483 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmoderr.h +155 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftotval.h +203 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftoutln.h +537 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftpfr.h +172 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftrender.h +230 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsizes.h +159 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsnames.h +200 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftstroke.h +716 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsynth.h +80 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsystem.h +347 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fttrigon.h +350 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fttypes.h +588 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftwinfnt.h +274 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftxf86.h +83 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/autohint.h +231 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftcalc.h +179 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftdebug.h +250 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftdriver.h +422 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftgloadr.h +168 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftmemory.h +380 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftobjs.h +1428 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftpic.h +67 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftrfork.h +196 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftserv.h +620 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftstream.h +539 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/fttrace.h +139 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftvalid.h +150 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/internal.h +51 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/pcftypes.h +56 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/psaux.h +873 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/pshints.h +712 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svbdf.h +77 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svcid.h +83 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svgldict.h +82 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svgxval.h +72 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svkern.h +51 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svmm.h +104 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svotval.h +55 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpfr.h +66 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpostnm.h +79 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpscmap.h +164 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpsinfo.h +92 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svsfnt.h +102 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svttcmap.h +106 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svtteng.h +53 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svttglyf.h +67 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svwinfnt.h +50 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svxf86nm.h +55 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/sfnt.h +897 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/t1types.h +270 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/tttypes.h +1543 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/t1tables.h +504 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ttnameid.h +1247 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/tttables.h +759 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/tttags.h +107 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ttunpat.h +59 -0
- data/pdf2json-0.52-source/freetype.win32/include/ft2build.h +39 -0
- data/pdf2json-0.52-source/freetype.win32/lib/freetype_a.lib +0 -0
- data/pdf2json-0.52-source/goo/.DS_Store +0 -0
- data/pdf2json-0.52-source/goo/FixedPoint.cc +118 -0
- data/pdf2json-0.52-source/goo/FixedPoint.h +155 -0
- data/pdf2json-0.52-source/goo/FixedPoint.o +0 -0
- data/pdf2json-0.52-source/goo/GHash.cc +380 -0
- data/pdf2json-0.52-source/goo/GHash.h +78 -0
- data/pdf2json-0.52-source/goo/GHash.o +0 -0
- data/pdf2json-0.52-source/goo/GList.cc +97 -0
- data/pdf2json-0.52-source/goo/GList.h +96 -0
- data/pdf2json-0.52-source/goo/GList.o +0 -0
- data/pdf2json-0.52-source/goo/GMutex.h +49 -0
- data/pdf2json-0.52-source/goo/GString.cc +724 -0
- data/pdf2json-0.52-source/goo/GString.cc.fixed +718 -0
- data/pdf2json-0.52-source/goo/GString.h +136 -0
- data/pdf2json-0.52-source/goo/GString.o +0 -0
- data/pdf2json-0.52-source/goo/ImgWriter.o +0 -0
- data/pdf2json-0.52-source/goo/JpegWriter.o +0 -0
- data/pdf2json-0.52-source/goo/Makefile +72 -0
- data/pdf2json-0.52-source/goo/Makefile.dep +0 -0
- data/pdf2json-0.52-source/goo/Makefile.in +72 -0
- data/pdf2json-0.52-source/goo/PNGWriter.o +0 -0
- data/pdf2json-0.52-source/goo/gfile.cc +731 -0
- data/pdf2json-0.52-source/goo/gfile.h +138 -0
- data/pdf2json-0.52-source/goo/gfile.o +0 -0
- data/pdf2json-0.52-source/goo/gmem.cc +264 -0
- data/pdf2json-0.52-source/goo/gmem.h +79 -0
- data/pdf2json-0.52-source/goo/gmem.o +0 -0
- data/pdf2json-0.52-source/goo/gmempp.cc +32 -0
- data/pdf2json-0.52-source/goo/gmempp.o +0 -0
- data/pdf2json-0.52-source/goo/gtypes.h +29 -0
- data/pdf2json-0.52-source/goo/libGoo.a +0 -0
- data/pdf2json-0.52-source/goo/parseargs.c +190 -0
- data/pdf2json-0.52-source/goo/parseargs.h +71 -0
- data/pdf2json-0.52-source/goo/parseargs.o +0 -0
- data/pdf2json-0.52-source/goo/vms_directory.c +214 -0
- data/pdf2json-0.52-source/goo/vms_dirent.h +67 -0
- data/pdf2json-0.52-source/goo/vms_make.com +82 -0
- data/pdf2json-0.52-source/goo/vms_sys_dirent.h +54 -0
- data/pdf2json-0.52-source/goo/vms_unix_time.h +102 -0
- data/pdf2json-0.52-source/goo/vms_unix_times.c +42 -0
- data/pdf2json-0.52-source/goo/vms_unlink.c +22 -0
- data/pdf2json-0.52-source/ms_make.bat +199 -0
- data/pdf2json-0.52-source/splash/.DS_Store +0 -0
- data/pdf2json-0.52-source/splash/Makefile +103 -0
- data/pdf2json-0.52-source/splash/Makefile.dep +0 -0
- data/pdf2json-0.52-source/splash/Makefile.in +103 -0
- data/pdf2json-0.52-source/splash/Splash.cc +3310 -0
- data/pdf2json-0.52-source/splash/Splash.h +293 -0
- data/pdf2json-0.52-source/splash/Splash.o +0 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.cc +188 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.h +64 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.o +0 -0
- data/pdf2json-0.52-source/splash/SplashClip.cc +382 -0
- data/pdf2json-0.52-source/splash/SplashClip.h +107 -0
- data/pdf2json-0.52-source/splash/SplashClip.o +0 -0
- data/pdf2json-0.52-source/splash/SplashErrorCodes.h +32 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.cc +357 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.h +58 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.cc +179 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.h +65 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.cc +114 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.h +73 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFont.cc +176 -0
- data/pdf2json-0.52-source/splash/SplashFont.h +104 -0
- data/pdf2json-0.52-source/splash/SplashFont.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.cc +317 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.h +91 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.cc +55 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.h +60 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.cc +23 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.h +30 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.o +0 -0
- data/pdf2json-0.52-source/splash/SplashGlyphBitmap.h +26 -0
- data/pdf2json-0.52-source/splash/SplashMath.h +89 -0
- data/pdf2json-0.52-source/splash/SplashPath.cc +184 -0
- data/pdf2json-0.52-source/splash/SplashPath.h +121 -0
- data/pdf2json-0.52-source/splash/SplashPath.o +0 -0
- data/pdf2json-0.52-source/splash/SplashPattern.cc +40 -0
- data/pdf2json-0.52-source/splash/SplashPattern.h +65 -0
- data/pdf2json-0.52-source/splash/SplashPattern.o +0 -0
- data/pdf2json-0.52-source/splash/SplashScreen.cc +383 -0
- data/pdf2json-0.52-source/splash/SplashScreen.h +56 -0
- data/pdf2json-0.52-source/splash/SplashScreen.o +0 -0
- data/pdf2json-0.52-source/splash/SplashState.cc +165 -0
- data/pdf2json-0.52-source/splash/SplashState.h +103 -0
- data/pdf2json-0.52-source/splash/SplashState.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.cc +287 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.h +57 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.cc +124 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.h +53 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.cc +97 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.h +58 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashTypes.h +132 -0
- data/pdf2json-0.52-source/splash/SplashXPath.cc +438 -0
- data/pdf2json-0.52-source/splash/SplashXPath.h +100 -0
- data/pdf2json-0.52-source/splash/SplashXPath.o +0 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.cc +428 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.h +87 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.o +0 -0
- data/pdf2json-0.52-source/splash/libsplash.a +0 -0
- data/pdf2json-0.52-source/splash/vms_make.com +0 -0
- data/pdf2json-0.52-source/src/.DS_Store +0 -0
- data/pdf2json-0.52-source/src/GVector.h +101 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.cc +1243 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.h +307 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.o +0 -0
- data/pdf2json-0.52-source/src/Makefile +68 -0
- data/pdf2json-0.52-source/src/Makefile.in +68 -0
- data/pdf2json-0.52-source/src/XmlFonts.cc +367 -0
- data/pdf2json-0.52-source/src/XmlFonts.h +91 -0
- data/pdf2json-0.52-source/src/XmlFonts.o +0 -0
- data/pdf2json-0.52-source/src/XmlLinks.cc +101 -0
- data/pdf2json-0.52-source/src/XmlLinks.h +54 -0
- data/pdf2json-0.52-source/src/XmlLinks.o +0 -0
- data/pdf2json-0.52-source/src/pdf2json +0 -0
- data/pdf2json-0.52-source/src/pdf2json.cc +343 -0
- data/pdf2json-0.52-source/src/pdf2json.o +0 -0
- data/pdf2json-0.52-source/src/pdf2xml.dtd +22 -0
- data/pdf2json-0.52-source/src/pdf2xmljson.dtd +9 -0
- data/pdf2json-0.52-source/xpdf/.DS_Store +0 -0
- data/pdf2json-0.52-source/xpdf/Annot.cc +1556 -0
- data/pdf2json-0.52-source/xpdf/Annot.h +142 -0
- data/pdf2json-0.52-source/xpdf/Annot.o +0 -0
- data/pdf2json-0.52-source/xpdf/Array.cc +73 -0
- data/pdf2json-0.52-source/xpdf/Array.h +58 -0
- data/pdf2json-0.52-source/xpdf/Array.o +0 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.cc +65 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.h +57 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.o +0 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.cc +4284 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.h +23 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.o +0 -0
- data/pdf2json-0.52-source/xpdf/CMap.cc +408 -0
- data/pdf2json-0.52-source/xpdf/CMap.h +102 -0
- data/pdf2json-0.52-source/xpdf/CMap.o +0 -0
- data/pdf2json-0.52-source/xpdf/Catalog.cc +374 -0
- data/pdf2json-0.52-source/xpdf/Catalog.h +97 -0
- data/pdf2json-0.52-source/xpdf/Catalog.o +0 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.cc +540 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.h +117 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.o +0 -0
- data/pdf2json-0.52-source/xpdf/CharTypes.h +24 -0
- data/pdf2json-0.52-source/xpdf/CompactFontTables.h +464 -0
- data/pdf2json-0.52-source/xpdf/CoreOutputDev.cc +61 -0
- data/pdf2json-0.52-source/xpdf/CoreOutputDev.h +61 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.cc +776 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.h +95 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.o +0 -0
- data/pdf2json-0.52-source/xpdf/Dict.cc +95 -0
- data/pdf2json-0.52-source/xpdf/Dict.h +77 -0
- data/pdf2json-0.52-source/xpdf/Dict.o +0 -0
- data/pdf2json-0.52-source/xpdf/Error.cc +38 -0
- data/pdf2json-0.52-source/xpdf/Error.h +23 -0
- data/pdf2json-0.52-source/xpdf/Error.o +0 -0
- data/pdf2json-0.52-source/xpdf/ErrorCodes.h +36 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.cc +1824 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.h +20 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.o +0 -0
- data/pdf2json-0.52-source/xpdf/Function.cc +1573 -0
- data/pdf2json-0.52-source/xpdf/Function.h +229 -0
- data/pdf2json-0.52-source/xpdf/Function.o +0 -0
- data/pdf2json-0.52-source/xpdf/Gfx.cc +4187 -0
- data/pdf2json-0.52-source/xpdf/Gfx.h +312 -0
- data/pdf2json-0.52-source/xpdf/Gfx.o +0 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.cc +1568 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.h +320 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.o +0 -0
- data/pdf2json-0.52-source/xpdf/GfxState.cc +4137 -0
- data/pdf2json-0.52-source/xpdf/GfxState.h +1244 -0
- data/pdf2json-0.52-source/xpdf/GfxState.o +0 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.cc +2924 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.cc.old +2908 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.h +466 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.h.old +463 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.o +0 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.cc +195 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.h +76 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.cc +322 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.h +109 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.o +0 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.cc +3413 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.h +145 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.o +0 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.cc +3144 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.h +351 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.o +0 -0
- data/pdf2json-0.52-source/xpdf/Lexer.cc +485 -0
- data/pdf2json-0.52-source/xpdf/Lexer.h +80 -0
- data/pdf2json-0.52-source/xpdf/Lexer.o +0 -0
- data/pdf2json-0.52-source/xpdf/Link.cc +806 -0
- data/pdf2json-0.52-source/xpdf/Link.cc.old +784 -0
- data/pdf2json-0.52-source/xpdf/Link.h +415 -0
- data/pdf2json-0.52-source/xpdf/Link.h.old +369 -0
- data/pdf2json-0.52-source/xpdf/Link.o +0 -0
- data/pdf2json-0.52-source/xpdf/Makefile +232 -0
- data/pdf2json-0.52-source/xpdf/Makefile.dep +0 -0
- data/pdf2json-0.52-source/xpdf/Makefile.in +232 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.cc +116 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.h +42 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.o +0 -0
- data/pdf2json-0.52-source/xpdf/NameToUnicodeTable.h +1097 -0
- data/pdf2json-0.52-source/xpdf/Object.cc +231 -0
- data/pdf2json-0.52-source/xpdf/Object.h +303 -0
- data/pdf2json-0.52-source/xpdf/Object.o +0 -0
- data/pdf2json-0.52-source/xpdf/Outline.cc +151 -0
- data/pdf2json-0.52-source/xpdf/Outline.h +76 -0
- data/pdf2json-0.52-source/xpdf/Outline.o +0 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.cc +131 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.h +253 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/PDFCore.cc +2044 -0
- data/pdf2json-0.52-source/xpdf/PDFCore.h +321 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.cc +404 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.h +183 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.o +0 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.cc +44 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.h +16 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.o +0 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.cc +6224 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.h +395 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.cc +135 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.h +41 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.o +0 -0
- data/pdf2json-0.52-source/xpdf/Page.cc +454 -0
- data/pdf2json-0.52-source/xpdf/Page.h +187 -0
- data/pdf2json-0.52-source/xpdf/Page.o +0 -0
- data/pdf2json-0.52-source/xpdf/Parser.cc +227 -0
- data/pdf2json-0.52-source/xpdf/Parser.h +59 -0
- data/pdf2json-0.52-source/xpdf/Parser.o +0 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.cc +257 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.h +130 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.cc +390 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.h +160 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.o +0 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.cc +2845 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.h +247 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/Stream-CCITT.h +459 -0
- data/pdf2json-0.52-source/xpdf/Stream.cc +4627 -0
- data/pdf2json-0.52-source/xpdf/Stream.h +858 -0
- data/pdf2json-0.52-source/xpdf/Stream.o +0 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.cc +4090 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.h +661 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/UTF8.h +56 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.cc +302 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.cc.old +293 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.h +135 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.h.old +123 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.o +0 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMapTables.h +361 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.cc +949 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.h +20 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.o +0 -0
- data/pdf2json-0.52-source/xpdf/XPDFApp.cc +447 -0
- data/pdf2json-0.52-source/xpdf/XPDFApp.h +114 -0
- data/pdf2json-0.52-source/xpdf/XPDFCore.cc +1655 -0
- data/pdf2json-0.52-source/xpdf/XPDFCore.h +251 -0
- data/pdf2json-0.52-source/xpdf/XPDFTree.cc +931 -0
- data/pdf2json-0.52-source/xpdf/XPDFTree.h +45 -0
- data/pdf2json-0.52-source/xpdf/XPDFTreeP.h +87 -0
- data/pdf2json-0.52-source/xpdf/XPDFViewer.cc +3488 -0
- data/pdf2json-0.52-source/xpdf/XPDFViewer.h +352 -0
- data/pdf2json-0.52-source/xpdf/XRef.cc +896 -0
- data/pdf2json-0.52-source/xpdf/XRef.h +133 -0
- data/pdf2json-0.52-source/xpdf/XRef.o +0 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.cc +262 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.h +341 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.o +0 -0
- data/pdf2json-0.52-source/xpdf/about-text.h +48 -0
- data/pdf2json-0.52-source/xpdf/about.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/backArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/backArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/config.h +112 -0
- data/pdf2json-0.52-source/xpdf/dblLeftArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblLeftArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblRightArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblRightArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/find.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/findDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/forwardArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/forwardArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/leftArrow.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/leftArrowDis.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/libXpdf.a +0 -0
- data/pdf2json-0.52-source/xpdf/pdffonts +0 -0
- data/pdf2json-0.52-source/xpdf/pdffonts.cc +298 -0
- data/pdf2json-0.52-source/xpdf/pdffonts.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdfimages +0 -0
- data/pdf2json-0.52-source/xpdf/pdfimages.cc +155 -0
- data/pdf2json-0.52-source/xpdf/pdfimages.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo +0 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo.cc +387 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdftoppm.cc +203 -0
- data/pdf2json-0.52-source/xpdf/pdftops +0 -0
- data/pdf2json-0.52-source/xpdf/pdftops.cc +344 -0
- data/pdf2json-0.52-source/xpdf/pdftops.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdftotext +0 -0
- data/pdf2json-0.52-source/xpdf/pdftotext.cc +333 -0
- data/pdf2json-0.52-source/xpdf/pdftotext.o +0 -0
- data/pdf2json-0.52-source/xpdf/print.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/printDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/rightArrow.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/rightArrowDis.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/vms_make.com +129 -0
- data/pdf2json-0.52-source/xpdf/xpdf.cc +344 -0
- data/pdf2json-0.52-source/xpdf/xpdfIcon.xpm +62 -0
- data/pdf2json.gemspec +29 -0
- metadata +518 -0
@@ -0,0 +1,200 @@
|
|
1
|
+
/***************************************************************************/
|
2
|
+
/* */
|
3
|
+
/* ftsnames.h */
|
4
|
+
/* */
|
5
|
+
/* Simple interface to access SFNT name tables (which are used */
|
6
|
+
/* to hold font names, copyright info, notices, etc.) (specification). */
|
7
|
+
/* */
|
8
|
+
/* This is _not_ used to retrieve glyph names! */
|
9
|
+
/* */
|
10
|
+
/* Copyright 1996-2001, 2002, 2003, 2006, 2009, 2010 by */
|
11
|
+
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
12
|
+
/* */
|
13
|
+
/* This file is part of the FreeType project, and may only be used, */
|
14
|
+
/* modified, and distributed under the terms of the FreeType project */
|
15
|
+
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
16
|
+
/* this file you indicate that you have read the license and */
|
17
|
+
/* understand and accept it fully. */
|
18
|
+
/* */
|
19
|
+
/***************************************************************************/
|
20
|
+
|
21
|
+
|
22
|
+
#ifndef __FT_SFNT_NAMES_H__
|
23
|
+
#define __FT_SFNT_NAMES_H__
|
24
|
+
|
25
|
+
|
26
|
+
#include <ft2build.h>
|
27
|
+
#include FT_FREETYPE_H
|
28
|
+
|
29
|
+
#ifdef FREETYPE_H
|
30
|
+
#error "freetype.h of FreeType 1 has been loaded!"
|
31
|
+
#error "Please fix the directory search order for header files"
|
32
|
+
#error "so that freetype.h of FreeType 2 is found first."
|
33
|
+
#endif
|
34
|
+
|
35
|
+
|
36
|
+
FT_BEGIN_HEADER
|
37
|
+
|
38
|
+
|
39
|
+
/*************************************************************************/
|
40
|
+
/* */
|
41
|
+
/* <Section> */
|
42
|
+
/* sfnt_names */
|
43
|
+
/* */
|
44
|
+
/* <Title> */
|
45
|
+
/* SFNT Names */
|
46
|
+
/* */
|
47
|
+
/* <Abstract> */
|
48
|
+
/* Access the names embedded in TrueType and OpenType files. */
|
49
|
+
/* */
|
50
|
+
/* <Description> */
|
51
|
+
/* The TrueType and OpenType specifications allow the inclusion of */
|
52
|
+
/* a special `names table' in font files. This table contains */
|
53
|
+
/* textual (and internationalized) information regarding the font, */
|
54
|
+
/* like family name, copyright, version, etc. */
|
55
|
+
/* */
|
56
|
+
/* The definitions below are used to access them if available. */
|
57
|
+
/* */
|
58
|
+
/* Note that this has nothing to do with glyph names! */
|
59
|
+
/* */
|
60
|
+
/*************************************************************************/
|
61
|
+
|
62
|
+
|
63
|
+
/*************************************************************************/
|
64
|
+
/* */
|
65
|
+
/* <Struct> */
|
66
|
+
/* FT_SfntName */
|
67
|
+
/* */
|
68
|
+
/* <Description> */
|
69
|
+
/* A structure used to model an SFNT `name' table entry. */
|
70
|
+
/* */
|
71
|
+
/* <Fields> */
|
72
|
+
/* platform_id :: The platform ID for `string'. */
|
73
|
+
/* */
|
74
|
+
/* encoding_id :: The encoding ID for `string'. */
|
75
|
+
/* */
|
76
|
+
/* language_id :: The language ID for `string'. */
|
77
|
+
/* */
|
78
|
+
/* name_id :: An identifier for `string'. */
|
79
|
+
/* */
|
80
|
+
/* string :: The `name' string. Note that its format differs */
|
81
|
+
/* depending on the (platform,encoding) pair. It can */
|
82
|
+
/* be a Pascal String, a UTF-16 one, etc. */
|
83
|
+
/* */
|
84
|
+
/* Generally speaking, the string is not */
|
85
|
+
/* zero-terminated. Please refer to the TrueType */
|
86
|
+
/* specification for details. */
|
87
|
+
/* */
|
88
|
+
/* string_len :: The length of `string' in bytes. */
|
89
|
+
/* */
|
90
|
+
/* <Note> */
|
91
|
+
/* Possible values for `platform_id', `encoding_id', `language_id', */
|
92
|
+
/* and `name_id' are given in the file `ttnameid.h'. For details */
|
93
|
+
/* please refer to the TrueType or OpenType specification. */
|
94
|
+
/* */
|
95
|
+
/* See also @TT_PLATFORM_XXX, @TT_APPLE_ID_XXX, @TT_MAC_ID_XXX, */
|
96
|
+
/* @TT_ISO_ID_XXX, and @TT_MS_ID_XXX. */
|
97
|
+
/* */
|
98
|
+
typedef struct FT_SfntName_
|
99
|
+
{
|
100
|
+
FT_UShort platform_id;
|
101
|
+
FT_UShort encoding_id;
|
102
|
+
FT_UShort language_id;
|
103
|
+
FT_UShort name_id;
|
104
|
+
|
105
|
+
FT_Byte* string; /* this string is *not* null-terminated! */
|
106
|
+
FT_UInt string_len; /* in bytes */
|
107
|
+
|
108
|
+
} FT_SfntName;
|
109
|
+
|
110
|
+
|
111
|
+
/*************************************************************************/
|
112
|
+
/* */
|
113
|
+
/* <Function> */
|
114
|
+
/* FT_Get_Sfnt_Name_Count */
|
115
|
+
/* */
|
116
|
+
/* <Description> */
|
117
|
+
/* Retrieve the number of name strings in the SFNT `name' table. */
|
118
|
+
/* */
|
119
|
+
/* <Input> */
|
120
|
+
/* face :: A handle to the source face. */
|
121
|
+
/* */
|
122
|
+
/* <Return> */
|
123
|
+
/* The number of strings in the `name' table. */
|
124
|
+
/* */
|
125
|
+
FT_EXPORT( FT_UInt )
|
126
|
+
FT_Get_Sfnt_Name_Count( FT_Face face );
|
127
|
+
|
128
|
+
|
129
|
+
/*************************************************************************/
|
130
|
+
/* */
|
131
|
+
/* <Function> */
|
132
|
+
/* FT_Get_Sfnt_Name */
|
133
|
+
/* */
|
134
|
+
/* <Description> */
|
135
|
+
/* Retrieve a string of the SFNT `name' table for a given index. */
|
136
|
+
/* */
|
137
|
+
/* <Input> */
|
138
|
+
/* face :: A handle to the source face. */
|
139
|
+
/* */
|
140
|
+
/* idx :: The index of the `name' string. */
|
141
|
+
/* */
|
142
|
+
/* <Output> */
|
143
|
+
/* aname :: The indexed @FT_SfntName structure. */
|
144
|
+
/* */
|
145
|
+
/* <Return> */
|
146
|
+
/* FreeType error code. 0~means success. */
|
147
|
+
/* */
|
148
|
+
/* <Note> */
|
149
|
+
/* The `string' array returned in the `aname' structure is not */
|
150
|
+
/* null-terminated. The application should deallocate it if it is no */
|
151
|
+
/* longer in use. */
|
152
|
+
/* */
|
153
|
+
/* Use @FT_Get_Sfnt_Name_Count to get the total number of available */
|
154
|
+
/* `name' table entries, then do a loop until you get the right */
|
155
|
+
/* platform, encoding, and name ID. */
|
156
|
+
/* */
|
157
|
+
FT_EXPORT( FT_Error )
|
158
|
+
FT_Get_Sfnt_Name( FT_Face face,
|
159
|
+
FT_UInt idx,
|
160
|
+
FT_SfntName *aname );
|
161
|
+
|
162
|
+
|
163
|
+
/***************************************************************************
|
164
|
+
*
|
165
|
+
* @constant:
|
166
|
+
* FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY
|
167
|
+
*
|
168
|
+
* @description:
|
169
|
+
* A constant used as the tag of @FT_Parameter structures to make
|
170
|
+
* FT_Open_Face() ignore preferred family subfamily names in `name'
|
171
|
+
* table since OpenType version 1.4. For backwards compatibility with
|
172
|
+
* legacy systems which has 4-face-per-family restriction.
|
173
|
+
*
|
174
|
+
*/
|
175
|
+
#define FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY FT_MAKE_TAG( 'i', 'g', 'p', 'f' )
|
176
|
+
|
177
|
+
|
178
|
+
/***************************************************************************
|
179
|
+
*
|
180
|
+
* @constant:
|
181
|
+
* FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY
|
182
|
+
*
|
183
|
+
* @description:
|
184
|
+
* A constant used as the tag of @FT_Parameter structures to make
|
185
|
+
* FT_Open_Face() ignore preferred subfamily names in `name' table since
|
186
|
+
* OpenType version 1.4. For backwards compatibility with legacy
|
187
|
+
* systems which has 4-face-per-family restriction.
|
188
|
+
*
|
189
|
+
*/
|
190
|
+
#define FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY FT_MAKE_TAG( 'i', 'g', 'p', 's' )
|
191
|
+
|
192
|
+
/* */
|
193
|
+
|
194
|
+
|
195
|
+
FT_END_HEADER
|
196
|
+
|
197
|
+
#endif /* __FT_SFNT_NAMES_H__ */
|
198
|
+
|
199
|
+
|
200
|
+
/* END */
|
@@ -0,0 +1,716 @@
|
|
1
|
+
/***************************************************************************/
|
2
|
+
/* */
|
3
|
+
/* ftstroke.h */
|
4
|
+
/* */
|
5
|
+
/* FreeType path stroker (specification). */
|
6
|
+
/* */
|
7
|
+
/* Copyright 2002, 2003, 2004, 2005, 2006, 2008, 2009 by */
|
8
|
+
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
9
|
+
/* */
|
10
|
+
/* This file is part of the FreeType project, and may only be used, */
|
11
|
+
/* modified, and distributed under the terms of the FreeType project */
|
12
|
+
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
13
|
+
/* this file you indicate that you have read the license and */
|
14
|
+
/* understand and accept it fully. */
|
15
|
+
/* */
|
16
|
+
/***************************************************************************/
|
17
|
+
|
18
|
+
|
19
|
+
#ifndef __FT_STROKE_H__
|
20
|
+
#define __FT_STROKE_H__
|
21
|
+
|
22
|
+
#include <ft2build.h>
|
23
|
+
#include FT_OUTLINE_H
|
24
|
+
#include FT_GLYPH_H
|
25
|
+
|
26
|
+
|
27
|
+
FT_BEGIN_HEADER
|
28
|
+
|
29
|
+
|
30
|
+
/************************************************************************
|
31
|
+
*
|
32
|
+
* @section:
|
33
|
+
* glyph_stroker
|
34
|
+
*
|
35
|
+
* @title:
|
36
|
+
* Glyph Stroker
|
37
|
+
*
|
38
|
+
* @abstract:
|
39
|
+
* Generating bordered and stroked glyphs.
|
40
|
+
*
|
41
|
+
* @description:
|
42
|
+
* This component generates stroked outlines of a given vectorial
|
43
|
+
* glyph. It also allows you to retrieve the `outside' and/or the
|
44
|
+
* `inside' borders of the stroke.
|
45
|
+
*
|
46
|
+
* This can be useful to generate `bordered' glyph, i.e., glyphs
|
47
|
+
* displayed with a coloured (and anti-aliased) border around their
|
48
|
+
* shape.
|
49
|
+
*/
|
50
|
+
|
51
|
+
|
52
|
+
/**************************************************************
|
53
|
+
*
|
54
|
+
* @type:
|
55
|
+
* FT_Stroker
|
56
|
+
*
|
57
|
+
* @description:
|
58
|
+
* Opaque handler to a path stroker object.
|
59
|
+
*/
|
60
|
+
typedef struct FT_StrokerRec_* FT_Stroker;
|
61
|
+
|
62
|
+
|
63
|
+
/**************************************************************
|
64
|
+
*
|
65
|
+
* @enum:
|
66
|
+
* FT_Stroker_LineJoin
|
67
|
+
*
|
68
|
+
* @description:
|
69
|
+
* These values determine how two joining lines are rendered
|
70
|
+
* in a stroker.
|
71
|
+
*
|
72
|
+
* @values:
|
73
|
+
* FT_STROKER_LINEJOIN_ROUND ::
|
74
|
+
* Used to render rounded line joins. Circular arcs are used
|
75
|
+
* to join two lines smoothly.
|
76
|
+
*
|
77
|
+
* FT_STROKER_LINEJOIN_BEVEL ::
|
78
|
+
* Used to render beveled line joins; i.e., the two joining lines
|
79
|
+
* are extended until they intersect.
|
80
|
+
*
|
81
|
+
* FT_STROKER_LINEJOIN_MITER ::
|
82
|
+
* Same as beveled rendering, except that an additional line
|
83
|
+
* break is added if the angle between the two joining lines
|
84
|
+
* is too closed (this is useful to avoid unpleasant spikes
|
85
|
+
* in beveled rendering).
|
86
|
+
*/
|
87
|
+
typedef enum FT_Stroker_LineJoin_
|
88
|
+
{
|
89
|
+
FT_STROKER_LINEJOIN_ROUND = 0,
|
90
|
+
FT_STROKER_LINEJOIN_BEVEL,
|
91
|
+
FT_STROKER_LINEJOIN_MITER
|
92
|
+
|
93
|
+
} FT_Stroker_LineJoin;
|
94
|
+
|
95
|
+
|
96
|
+
/**************************************************************
|
97
|
+
*
|
98
|
+
* @enum:
|
99
|
+
* FT_Stroker_LineCap
|
100
|
+
*
|
101
|
+
* @description:
|
102
|
+
* These values determine how the end of opened sub-paths are
|
103
|
+
* rendered in a stroke.
|
104
|
+
*
|
105
|
+
* @values:
|
106
|
+
* FT_STROKER_LINECAP_BUTT ::
|
107
|
+
* The end of lines is rendered as a full stop on the last
|
108
|
+
* point itself.
|
109
|
+
*
|
110
|
+
* FT_STROKER_LINECAP_ROUND ::
|
111
|
+
* The end of lines is rendered as a half-circle around the
|
112
|
+
* last point.
|
113
|
+
*
|
114
|
+
* FT_STROKER_LINECAP_SQUARE ::
|
115
|
+
* The end of lines is rendered as a square around the
|
116
|
+
* last point.
|
117
|
+
*/
|
118
|
+
typedef enum FT_Stroker_LineCap_
|
119
|
+
{
|
120
|
+
FT_STROKER_LINECAP_BUTT = 0,
|
121
|
+
FT_STROKER_LINECAP_ROUND,
|
122
|
+
FT_STROKER_LINECAP_SQUARE
|
123
|
+
|
124
|
+
} FT_Stroker_LineCap;
|
125
|
+
|
126
|
+
|
127
|
+
/**************************************************************
|
128
|
+
*
|
129
|
+
* @enum:
|
130
|
+
* FT_StrokerBorder
|
131
|
+
*
|
132
|
+
* @description:
|
133
|
+
* These values are used to select a given stroke border
|
134
|
+
* in @FT_Stroker_GetBorderCounts and @FT_Stroker_ExportBorder.
|
135
|
+
*
|
136
|
+
* @values:
|
137
|
+
* FT_STROKER_BORDER_LEFT ::
|
138
|
+
* Select the left border, relative to the drawing direction.
|
139
|
+
*
|
140
|
+
* FT_STROKER_BORDER_RIGHT ::
|
141
|
+
* Select the right border, relative to the drawing direction.
|
142
|
+
*
|
143
|
+
* @note:
|
144
|
+
* Applications are generally interested in the `inside' and `outside'
|
145
|
+
* borders. However, there is no direct mapping between these and the
|
146
|
+
* `left' and `right' ones, since this really depends on the glyph's
|
147
|
+
* drawing orientation, which varies between font formats.
|
148
|
+
*
|
149
|
+
* You can however use @FT_Outline_GetInsideBorder and
|
150
|
+
* @FT_Outline_GetOutsideBorder to get these.
|
151
|
+
*/
|
152
|
+
typedef enum FT_StrokerBorder_
|
153
|
+
{
|
154
|
+
FT_STROKER_BORDER_LEFT = 0,
|
155
|
+
FT_STROKER_BORDER_RIGHT
|
156
|
+
|
157
|
+
} FT_StrokerBorder;
|
158
|
+
|
159
|
+
|
160
|
+
/**************************************************************
|
161
|
+
*
|
162
|
+
* @function:
|
163
|
+
* FT_Outline_GetInsideBorder
|
164
|
+
*
|
165
|
+
* @description:
|
166
|
+
* Retrieve the @FT_StrokerBorder value corresponding to the
|
167
|
+
* `inside' borders of a given outline.
|
168
|
+
*
|
169
|
+
* @input:
|
170
|
+
* outline ::
|
171
|
+
* The source outline handle.
|
172
|
+
*
|
173
|
+
* @return:
|
174
|
+
* The border index. @FT_STROKER_BORDER_RIGHT for empty or invalid
|
175
|
+
* outlines.
|
176
|
+
*/
|
177
|
+
FT_EXPORT( FT_StrokerBorder )
|
178
|
+
FT_Outline_GetInsideBorder( FT_Outline* outline );
|
179
|
+
|
180
|
+
|
181
|
+
/**************************************************************
|
182
|
+
*
|
183
|
+
* @function:
|
184
|
+
* FT_Outline_GetOutsideBorder
|
185
|
+
*
|
186
|
+
* @description:
|
187
|
+
* Retrieve the @FT_StrokerBorder value corresponding to the
|
188
|
+
* `outside' borders of a given outline.
|
189
|
+
*
|
190
|
+
* @input:
|
191
|
+
* outline ::
|
192
|
+
* The source outline handle.
|
193
|
+
*
|
194
|
+
* @return:
|
195
|
+
* The border index. @FT_STROKER_BORDER_LEFT for empty or invalid
|
196
|
+
* outlines.
|
197
|
+
*/
|
198
|
+
FT_EXPORT( FT_StrokerBorder )
|
199
|
+
FT_Outline_GetOutsideBorder( FT_Outline* outline );
|
200
|
+
|
201
|
+
|
202
|
+
/**************************************************************
|
203
|
+
*
|
204
|
+
* @function:
|
205
|
+
* FT_Stroker_New
|
206
|
+
*
|
207
|
+
* @description:
|
208
|
+
* Create a new stroker object.
|
209
|
+
*
|
210
|
+
* @input:
|
211
|
+
* library ::
|
212
|
+
* FreeType library handle.
|
213
|
+
*
|
214
|
+
* @output:
|
215
|
+
* astroker ::
|
216
|
+
* A new stroker object handle. NULL in case of error.
|
217
|
+
*
|
218
|
+
* @return:
|
219
|
+
* FreeType error code. 0~means success.
|
220
|
+
*/
|
221
|
+
FT_EXPORT( FT_Error )
|
222
|
+
FT_Stroker_New( FT_Library library,
|
223
|
+
FT_Stroker *astroker );
|
224
|
+
|
225
|
+
|
226
|
+
/**************************************************************
|
227
|
+
*
|
228
|
+
* @function:
|
229
|
+
* FT_Stroker_Set
|
230
|
+
*
|
231
|
+
* @description:
|
232
|
+
* Reset a stroker object's attributes.
|
233
|
+
*
|
234
|
+
* @input:
|
235
|
+
* stroker ::
|
236
|
+
* The target stroker handle.
|
237
|
+
*
|
238
|
+
* radius ::
|
239
|
+
* The border radius.
|
240
|
+
*
|
241
|
+
* line_cap ::
|
242
|
+
* The line cap style.
|
243
|
+
*
|
244
|
+
* line_join ::
|
245
|
+
* The line join style.
|
246
|
+
*
|
247
|
+
* miter_limit ::
|
248
|
+
* The miter limit for the FT_STROKER_LINEJOIN_MITER style,
|
249
|
+
* expressed as 16.16 fixed point value.
|
250
|
+
*
|
251
|
+
* @note:
|
252
|
+
* The radius is expressed in the same units as the outline
|
253
|
+
* coordinates.
|
254
|
+
*/
|
255
|
+
FT_EXPORT( void )
|
256
|
+
FT_Stroker_Set( FT_Stroker stroker,
|
257
|
+
FT_Fixed radius,
|
258
|
+
FT_Stroker_LineCap line_cap,
|
259
|
+
FT_Stroker_LineJoin line_join,
|
260
|
+
FT_Fixed miter_limit );
|
261
|
+
|
262
|
+
|
263
|
+
/**************************************************************
|
264
|
+
*
|
265
|
+
* @function:
|
266
|
+
* FT_Stroker_Rewind
|
267
|
+
*
|
268
|
+
* @description:
|
269
|
+
* Reset a stroker object without changing its attributes.
|
270
|
+
* You should call this function before beginning a new
|
271
|
+
* series of calls to @FT_Stroker_BeginSubPath or
|
272
|
+
* @FT_Stroker_EndSubPath.
|
273
|
+
*
|
274
|
+
* @input:
|
275
|
+
* stroker ::
|
276
|
+
* The target stroker handle.
|
277
|
+
*/
|
278
|
+
FT_EXPORT( void )
|
279
|
+
FT_Stroker_Rewind( FT_Stroker stroker );
|
280
|
+
|
281
|
+
|
282
|
+
/**************************************************************
|
283
|
+
*
|
284
|
+
* @function:
|
285
|
+
* FT_Stroker_ParseOutline
|
286
|
+
*
|
287
|
+
* @description:
|
288
|
+
* A convenience function used to parse a whole outline with
|
289
|
+
* the stroker. The resulting outline(s) can be retrieved
|
290
|
+
* later by functions like @FT_Stroker_GetCounts and @FT_Stroker_Export.
|
291
|
+
*
|
292
|
+
* @input:
|
293
|
+
* stroker ::
|
294
|
+
* The target stroker handle.
|
295
|
+
*
|
296
|
+
* outline ::
|
297
|
+
* The source outline.
|
298
|
+
*
|
299
|
+
* opened ::
|
300
|
+
* A boolean. If~1, the outline is treated as an open path instead
|
301
|
+
* of a closed one.
|
302
|
+
*
|
303
|
+
* @return:
|
304
|
+
* FreeType error code. 0~means success.
|
305
|
+
*
|
306
|
+
* @note:
|
307
|
+
* If `opened' is~0 (the default), the outline is treated as a closed
|
308
|
+
* path, and the stroker generates two distinct `border' outlines.
|
309
|
+
*
|
310
|
+
* If `opened' is~1, the outline is processed as an open path, and the
|
311
|
+
* stroker generates a single `stroke' outline.
|
312
|
+
*
|
313
|
+
* This function calls @FT_Stroker_Rewind automatically.
|
314
|
+
*/
|
315
|
+
FT_EXPORT( FT_Error )
|
316
|
+
FT_Stroker_ParseOutline( FT_Stroker stroker,
|
317
|
+
FT_Outline* outline,
|
318
|
+
FT_Bool opened );
|
319
|
+
|
320
|
+
|
321
|
+
/**************************************************************
|
322
|
+
*
|
323
|
+
* @function:
|
324
|
+
* FT_Stroker_BeginSubPath
|
325
|
+
*
|
326
|
+
* @description:
|
327
|
+
* Start a new sub-path in the stroker.
|
328
|
+
*
|
329
|
+
* @input:
|
330
|
+
* stroker ::
|
331
|
+
* The target stroker handle.
|
332
|
+
*
|
333
|
+
* to ::
|
334
|
+
* A pointer to the start vector.
|
335
|
+
*
|
336
|
+
* open ::
|
337
|
+
* A boolean. If~1, the sub-path is treated as an open one.
|
338
|
+
*
|
339
|
+
* @return:
|
340
|
+
* FreeType error code. 0~means success.
|
341
|
+
*
|
342
|
+
* @note:
|
343
|
+
* This function is useful when you need to stroke a path that is
|
344
|
+
* not stored as an @FT_Outline object.
|
345
|
+
*/
|
346
|
+
FT_EXPORT( FT_Error )
|
347
|
+
FT_Stroker_BeginSubPath( FT_Stroker stroker,
|
348
|
+
FT_Vector* to,
|
349
|
+
FT_Bool open );
|
350
|
+
|
351
|
+
|
352
|
+
/**************************************************************
|
353
|
+
*
|
354
|
+
* @function:
|
355
|
+
* FT_Stroker_EndSubPath
|
356
|
+
*
|
357
|
+
* @description:
|
358
|
+
* Close the current sub-path in the stroker.
|
359
|
+
*
|
360
|
+
* @input:
|
361
|
+
* stroker ::
|
362
|
+
* The target stroker handle.
|
363
|
+
*
|
364
|
+
* @return:
|
365
|
+
* FreeType error code. 0~means success.
|
366
|
+
*
|
367
|
+
* @note:
|
368
|
+
* You should call this function after @FT_Stroker_BeginSubPath.
|
369
|
+
* If the subpath was not `opened', this function `draws' a
|
370
|
+
* single line segment to the start position when needed.
|
371
|
+
*/
|
372
|
+
FT_EXPORT( FT_Error )
|
373
|
+
FT_Stroker_EndSubPath( FT_Stroker stroker );
|
374
|
+
|
375
|
+
|
376
|
+
/**************************************************************
|
377
|
+
*
|
378
|
+
* @function:
|
379
|
+
* FT_Stroker_LineTo
|
380
|
+
*
|
381
|
+
* @description:
|
382
|
+
* `Draw' a single line segment in the stroker's current sub-path,
|
383
|
+
* from the last position.
|
384
|
+
*
|
385
|
+
* @input:
|
386
|
+
* stroker ::
|
387
|
+
* The target stroker handle.
|
388
|
+
*
|
389
|
+
* to ::
|
390
|
+
* A pointer to the destination point.
|
391
|
+
*
|
392
|
+
* @return:
|
393
|
+
* FreeType error code. 0~means success.
|
394
|
+
*
|
395
|
+
* @note:
|
396
|
+
* You should call this function between @FT_Stroker_BeginSubPath and
|
397
|
+
* @FT_Stroker_EndSubPath.
|
398
|
+
*/
|
399
|
+
FT_EXPORT( FT_Error )
|
400
|
+
FT_Stroker_LineTo( FT_Stroker stroker,
|
401
|
+
FT_Vector* to );
|
402
|
+
|
403
|
+
|
404
|
+
/**************************************************************
|
405
|
+
*
|
406
|
+
* @function:
|
407
|
+
* FT_Stroker_ConicTo
|
408
|
+
*
|
409
|
+
* @description:
|
410
|
+
* `Draw' a single quadratic Bézier in the stroker's current sub-path,
|
411
|
+
* from the last position.
|
412
|
+
*
|
413
|
+
* @input:
|
414
|
+
* stroker ::
|
415
|
+
* The target stroker handle.
|
416
|
+
*
|
417
|
+
* control ::
|
418
|
+
* A pointer to a Bézier control point.
|
419
|
+
*
|
420
|
+
* to ::
|
421
|
+
* A pointer to the destination point.
|
422
|
+
*
|
423
|
+
* @return:
|
424
|
+
* FreeType error code. 0~means success.
|
425
|
+
*
|
426
|
+
* @note:
|
427
|
+
* You should call this function between @FT_Stroker_BeginSubPath and
|
428
|
+
* @FT_Stroker_EndSubPath.
|
429
|
+
*/
|
430
|
+
FT_EXPORT( FT_Error )
|
431
|
+
FT_Stroker_ConicTo( FT_Stroker stroker,
|
432
|
+
FT_Vector* control,
|
433
|
+
FT_Vector* to );
|
434
|
+
|
435
|
+
|
436
|
+
/**************************************************************
|
437
|
+
*
|
438
|
+
* @function:
|
439
|
+
* FT_Stroker_CubicTo
|
440
|
+
*
|
441
|
+
* @description:
|
442
|
+
* `Draw' a single cubic Bézier in the stroker's current sub-path,
|
443
|
+
* from the last position.
|
444
|
+
*
|
445
|
+
* @input:
|
446
|
+
* stroker ::
|
447
|
+
* The target stroker handle.
|
448
|
+
*
|
449
|
+
* control1 ::
|
450
|
+
* A pointer to the first Bézier control point.
|
451
|
+
*
|
452
|
+
* control2 ::
|
453
|
+
* A pointer to second Bézier control point.
|
454
|
+
*
|
455
|
+
* to ::
|
456
|
+
* A pointer to the destination point.
|
457
|
+
*
|
458
|
+
* @return:
|
459
|
+
* FreeType error code. 0~means success.
|
460
|
+
*
|
461
|
+
* @note:
|
462
|
+
* You should call this function between @FT_Stroker_BeginSubPath and
|
463
|
+
* @FT_Stroker_EndSubPath.
|
464
|
+
*/
|
465
|
+
FT_EXPORT( FT_Error )
|
466
|
+
FT_Stroker_CubicTo( FT_Stroker stroker,
|
467
|
+
FT_Vector* control1,
|
468
|
+
FT_Vector* control2,
|
469
|
+
FT_Vector* to );
|
470
|
+
|
471
|
+
|
472
|
+
/**************************************************************
|
473
|
+
*
|
474
|
+
* @function:
|
475
|
+
* FT_Stroker_GetBorderCounts
|
476
|
+
*
|
477
|
+
* @description:
|
478
|
+
* Call this function once you have finished parsing your paths
|
479
|
+
* with the stroker. It returns the number of points and
|
480
|
+
* contours necessary to export one of the `border' or `stroke'
|
481
|
+
* outlines generated by the stroker.
|
482
|
+
*
|
483
|
+
* @input:
|
484
|
+
* stroker ::
|
485
|
+
* The target stroker handle.
|
486
|
+
*
|
487
|
+
* border ::
|
488
|
+
* The border index.
|
489
|
+
*
|
490
|
+
* @output:
|
491
|
+
* anum_points ::
|
492
|
+
* The number of points.
|
493
|
+
*
|
494
|
+
* anum_contours ::
|
495
|
+
* The number of contours.
|
496
|
+
*
|
497
|
+
* @return:
|
498
|
+
* FreeType error code. 0~means success.
|
499
|
+
*
|
500
|
+
* @note:
|
501
|
+
* When an outline, or a sub-path, is `closed', the stroker generates
|
502
|
+
* two independent `border' outlines, named `left' and `right'.
|
503
|
+
*
|
504
|
+
* When the outline, or a sub-path, is `opened', the stroker merges
|
505
|
+
* the `border' outlines with caps. The `left' border receives all
|
506
|
+
* points, while the `right' border becomes empty.
|
507
|
+
*
|
508
|
+
* Use the function @FT_Stroker_GetCounts instead if you want to
|
509
|
+
* retrieve the counts associated to both borders.
|
510
|
+
*/
|
511
|
+
FT_EXPORT( FT_Error )
|
512
|
+
FT_Stroker_GetBorderCounts( FT_Stroker stroker,
|
513
|
+
FT_StrokerBorder border,
|
514
|
+
FT_UInt *anum_points,
|
515
|
+
FT_UInt *anum_contours );
|
516
|
+
|
517
|
+
|
518
|
+
/**************************************************************
|
519
|
+
*
|
520
|
+
* @function:
|
521
|
+
* FT_Stroker_ExportBorder
|
522
|
+
*
|
523
|
+
* @description:
|
524
|
+
* Call this function after @FT_Stroker_GetBorderCounts to
|
525
|
+
* export the corresponding border to your own @FT_Outline
|
526
|
+
* structure.
|
527
|
+
*
|
528
|
+
* Note that this function appends the border points and
|
529
|
+
* contours to your outline, but does not try to resize its
|
530
|
+
* arrays.
|
531
|
+
*
|
532
|
+
* @input:
|
533
|
+
* stroker ::
|
534
|
+
* The target stroker handle.
|
535
|
+
*
|
536
|
+
* border ::
|
537
|
+
* The border index.
|
538
|
+
*
|
539
|
+
* outline ::
|
540
|
+
* The target outline handle.
|
541
|
+
*
|
542
|
+
* @note:
|
543
|
+
* Always call this function after @FT_Stroker_GetBorderCounts to
|
544
|
+
* get sure that there is enough room in your @FT_Outline object to
|
545
|
+
* receive all new data.
|
546
|
+
*
|
547
|
+
* When an outline, or a sub-path, is `closed', the stroker generates
|
548
|
+
* two independent `border' outlines, named `left' and `right'
|
549
|
+
*
|
550
|
+
* When the outline, or a sub-path, is `opened', the stroker merges
|
551
|
+
* the `border' outlines with caps. The `left' border receives all
|
552
|
+
* points, while the `right' border becomes empty.
|
553
|
+
*
|
554
|
+
* Use the function @FT_Stroker_Export instead if you want to
|
555
|
+
* retrieve all borders at once.
|
556
|
+
*/
|
557
|
+
FT_EXPORT( void )
|
558
|
+
FT_Stroker_ExportBorder( FT_Stroker stroker,
|
559
|
+
FT_StrokerBorder border,
|
560
|
+
FT_Outline* outline );
|
561
|
+
|
562
|
+
|
563
|
+
/**************************************************************
|
564
|
+
*
|
565
|
+
* @function:
|
566
|
+
* FT_Stroker_GetCounts
|
567
|
+
*
|
568
|
+
* @description:
|
569
|
+
* Call this function once you have finished parsing your paths
|
570
|
+
* with the stroker. It returns the number of points and
|
571
|
+
* contours necessary to export all points/borders from the stroked
|
572
|
+
* outline/path.
|
573
|
+
*
|
574
|
+
* @input:
|
575
|
+
* stroker ::
|
576
|
+
* The target stroker handle.
|
577
|
+
*
|
578
|
+
* @output:
|
579
|
+
* anum_points ::
|
580
|
+
* The number of points.
|
581
|
+
*
|
582
|
+
* anum_contours ::
|
583
|
+
* The number of contours.
|
584
|
+
*
|
585
|
+
* @return:
|
586
|
+
* FreeType error code. 0~means success.
|
587
|
+
*/
|
588
|
+
FT_EXPORT( FT_Error )
|
589
|
+
FT_Stroker_GetCounts( FT_Stroker stroker,
|
590
|
+
FT_UInt *anum_points,
|
591
|
+
FT_UInt *anum_contours );
|
592
|
+
|
593
|
+
|
594
|
+
/**************************************************************
|
595
|
+
*
|
596
|
+
* @function:
|
597
|
+
* FT_Stroker_Export
|
598
|
+
*
|
599
|
+
* @description:
|
600
|
+
* Call this function after @FT_Stroker_GetBorderCounts to
|
601
|
+
* export all borders to your own @FT_Outline structure.
|
602
|
+
*
|
603
|
+
* Note that this function appends the border points and
|
604
|
+
* contours to your outline, but does not try to resize its
|
605
|
+
* arrays.
|
606
|
+
*
|
607
|
+
* @input:
|
608
|
+
* stroker ::
|
609
|
+
* The target stroker handle.
|
610
|
+
*
|
611
|
+
* outline ::
|
612
|
+
* The target outline handle.
|
613
|
+
*/
|
614
|
+
FT_EXPORT( void )
|
615
|
+
FT_Stroker_Export( FT_Stroker stroker,
|
616
|
+
FT_Outline* outline );
|
617
|
+
|
618
|
+
|
619
|
+
/**************************************************************
|
620
|
+
*
|
621
|
+
* @function:
|
622
|
+
* FT_Stroker_Done
|
623
|
+
*
|
624
|
+
* @description:
|
625
|
+
* Destroy a stroker object.
|
626
|
+
*
|
627
|
+
* @input:
|
628
|
+
* stroker ::
|
629
|
+
* A stroker handle. Can be NULL.
|
630
|
+
*/
|
631
|
+
FT_EXPORT( void )
|
632
|
+
FT_Stroker_Done( FT_Stroker stroker );
|
633
|
+
|
634
|
+
|
635
|
+
/**************************************************************
|
636
|
+
*
|
637
|
+
* @function:
|
638
|
+
* FT_Glyph_Stroke
|
639
|
+
*
|
640
|
+
* @description:
|
641
|
+
* Stroke a given outline glyph object with a given stroker.
|
642
|
+
*
|
643
|
+
* @inout:
|
644
|
+
* pglyph ::
|
645
|
+
* Source glyph handle on input, new glyph handle on output.
|
646
|
+
*
|
647
|
+
* @input:
|
648
|
+
* stroker ::
|
649
|
+
* A stroker handle.
|
650
|
+
*
|
651
|
+
* destroy ::
|
652
|
+
* A Boolean. If~1, the source glyph object is destroyed
|
653
|
+
* on success.
|
654
|
+
*
|
655
|
+
* @return:
|
656
|
+
* FreeType error code. 0~means success.
|
657
|
+
*
|
658
|
+
* @note:
|
659
|
+
* The source glyph is untouched in case of error.
|
660
|
+
*/
|
661
|
+
FT_EXPORT( FT_Error )
|
662
|
+
FT_Glyph_Stroke( FT_Glyph *pglyph,
|
663
|
+
FT_Stroker stroker,
|
664
|
+
FT_Bool destroy );
|
665
|
+
|
666
|
+
|
667
|
+
/**************************************************************
|
668
|
+
*
|
669
|
+
* @function:
|
670
|
+
* FT_Glyph_StrokeBorder
|
671
|
+
*
|
672
|
+
* @description:
|
673
|
+
* Stroke a given outline glyph object with a given stroker, but
|
674
|
+
* only return either its inside or outside border.
|
675
|
+
*
|
676
|
+
* @inout:
|
677
|
+
* pglyph ::
|
678
|
+
* Source glyph handle on input, new glyph handle on output.
|
679
|
+
*
|
680
|
+
* @input:
|
681
|
+
* stroker ::
|
682
|
+
* A stroker handle.
|
683
|
+
*
|
684
|
+
* inside ::
|
685
|
+
* A Boolean. If~1, return the inside border, otherwise
|
686
|
+
* the outside border.
|
687
|
+
*
|
688
|
+
* destroy ::
|
689
|
+
* A Boolean. If~1, the source glyph object is destroyed
|
690
|
+
* on success.
|
691
|
+
*
|
692
|
+
* @return:
|
693
|
+
* FreeType error code. 0~means success.
|
694
|
+
*
|
695
|
+
* @note:
|
696
|
+
* The source glyph is untouched in case of error.
|
697
|
+
*/
|
698
|
+
FT_EXPORT( FT_Error )
|
699
|
+
FT_Glyph_StrokeBorder( FT_Glyph *pglyph,
|
700
|
+
FT_Stroker stroker,
|
701
|
+
FT_Bool inside,
|
702
|
+
FT_Bool destroy );
|
703
|
+
|
704
|
+
/* */
|
705
|
+
|
706
|
+
FT_END_HEADER
|
707
|
+
|
708
|
+
#endif /* __FT_STROKE_H__ */
|
709
|
+
|
710
|
+
|
711
|
+
/* END */
|
712
|
+
|
713
|
+
|
714
|
+
/* Local Variables: */
|
715
|
+
/* coding: utf-8 */
|
716
|
+
/* End: */
|