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,353 @@
|
|
1
|
+
/***************************************************************************/
|
2
|
+
/* */
|
3
|
+
/* ftincrem.h */
|
4
|
+
/* */
|
5
|
+
/* FreeType incremental loading (specification). */
|
6
|
+
/* */
|
7
|
+
/* Copyright 2002, 2003, 2006, 2007, 2008, 2010 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 __FTINCREM_H__
|
20
|
+
#define __FTINCREM_H__
|
21
|
+
|
22
|
+
#include <ft2build.h>
|
23
|
+
#include FT_FREETYPE_H
|
24
|
+
|
25
|
+
#ifdef FREETYPE_H
|
26
|
+
#error "freetype.h of FreeType 1 has been loaded!"
|
27
|
+
#error "Please fix the directory search order for header files"
|
28
|
+
#error "so that freetype.h of FreeType 2 is found first."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
|
32
|
+
FT_BEGIN_HEADER
|
33
|
+
|
34
|
+
/***************************************************************************
|
35
|
+
*
|
36
|
+
* @section:
|
37
|
+
* incremental
|
38
|
+
*
|
39
|
+
* @title:
|
40
|
+
* Incremental Loading
|
41
|
+
*
|
42
|
+
* @abstract:
|
43
|
+
* Custom Glyph Loading.
|
44
|
+
*
|
45
|
+
* @description:
|
46
|
+
* This section contains various functions used to perform so-called
|
47
|
+
* `incremental' glyph loading. This is a mode where all glyphs loaded
|
48
|
+
* from a given @FT_Face are provided by the client application,
|
49
|
+
*
|
50
|
+
* Apart from that, all other tables are loaded normally from the font
|
51
|
+
* file. This mode is useful when FreeType is used within another
|
52
|
+
* engine, e.g., a PostScript Imaging Processor.
|
53
|
+
*
|
54
|
+
* To enable this mode, you must use @FT_Open_Face, passing an
|
55
|
+
* @FT_Parameter with the @FT_PARAM_TAG_INCREMENTAL tag and an
|
56
|
+
* @FT_Incremental_Interface value. See the comments for
|
57
|
+
* @FT_Incremental_InterfaceRec for an example.
|
58
|
+
*
|
59
|
+
*/
|
60
|
+
|
61
|
+
|
62
|
+
/***************************************************************************
|
63
|
+
*
|
64
|
+
* @type:
|
65
|
+
* FT_Incremental
|
66
|
+
*
|
67
|
+
* @description:
|
68
|
+
* An opaque type describing a user-provided object used to implement
|
69
|
+
* `incremental' glyph loading within FreeType. This is used to support
|
70
|
+
* embedded fonts in certain environments (e.g., PostScript interpreters),
|
71
|
+
* where the glyph data isn't in the font file, or must be overridden by
|
72
|
+
* different values.
|
73
|
+
*
|
74
|
+
* @note:
|
75
|
+
* It is up to client applications to create and implement @FT_Incremental
|
76
|
+
* objects, as long as they provide implementations for the methods
|
77
|
+
* @FT_Incremental_GetGlyphDataFunc, @FT_Incremental_FreeGlyphDataFunc
|
78
|
+
* and @FT_Incremental_GetGlyphMetricsFunc.
|
79
|
+
*
|
80
|
+
* See the description of @FT_Incremental_InterfaceRec to understand how
|
81
|
+
* to use incremental objects with FreeType.
|
82
|
+
*
|
83
|
+
*/
|
84
|
+
typedef struct FT_IncrementalRec_* FT_Incremental;
|
85
|
+
|
86
|
+
|
87
|
+
/***************************************************************************
|
88
|
+
*
|
89
|
+
* @struct:
|
90
|
+
* FT_Incremental_MetricsRec
|
91
|
+
*
|
92
|
+
* @description:
|
93
|
+
* A small structure used to contain the basic glyph metrics returned
|
94
|
+
* by the @FT_Incremental_GetGlyphMetricsFunc method.
|
95
|
+
*
|
96
|
+
* @fields:
|
97
|
+
* bearing_x ::
|
98
|
+
* Left bearing, in font units.
|
99
|
+
*
|
100
|
+
* bearing_y ::
|
101
|
+
* Top bearing, in font units.
|
102
|
+
*
|
103
|
+
* advance ::
|
104
|
+
* Horizontal component of glyph advance, in font units.
|
105
|
+
*
|
106
|
+
* advance_v ::
|
107
|
+
* Vertical component of glyph advance, in font units.
|
108
|
+
*
|
109
|
+
* @note:
|
110
|
+
* These correspond to horizontal or vertical metrics depending on the
|
111
|
+
* value of the `vertical' argument to the function
|
112
|
+
* @FT_Incremental_GetGlyphMetricsFunc.
|
113
|
+
*
|
114
|
+
*/
|
115
|
+
typedef struct FT_Incremental_MetricsRec_
|
116
|
+
{
|
117
|
+
FT_Long bearing_x;
|
118
|
+
FT_Long bearing_y;
|
119
|
+
FT_Long advance;
|
120
|
+
FT_Long advance_v; /* since 2.3.12 */
|
121
|
+
|
122
|
+
} FT_Incremental_MetricsRec;
|
123
|
+
|
124
|
+
|
125
|
+
/***************************************************************************
|
126
|
+
*
|
127
|
+
* @struct:
|
128
|
+
* FT_Incremental_Metrics
|
129
|
+
*
|
130
|
+
* @description:
|
131
|
+
* A handle to an @FT_Incremental_MetricsRec structure.
|
132
|
+
*
|
133
|
+
*/
|
134
|
+
typedef struct FT_Incremental_MetricsRec_* FT_Incremental_Metrics;
|
135
|
+
|
136
|
+
|
137
|
+
/***************************************************************************
|
138
|
+
*
|
139
|
+
* @type:
|
140
|
+
* FT_Incremental_GetGlyphDataFunc
|
141
|
+
*
|
142
|
+
* @description:
|
143
|
+
* A function called by FreeType to access a given glyph's data bytes
|
144
|
+
* during @FT_Load_Glyph or @FT_Load_Char if incremental loading is
|
145
|
+
* enabled.
|
146
|
+
*
|
147
|
+
* Note that the format of the glyph's data bytes depends on the font
|
148
|
+
* file format. For TrueType, it must correspond to the raw bytes within
|
149
|
+
* the `glyf' table. For PostScript formats, it must correspond to the
|
150
|
+
* *unencrypted* charstring bytes, without any `lenIV' header. It is
|
151
|
+
* undefined for any other format.
|
152
|
+
*
|
153
|
+
* @input:
|
154
|
+
* incremental ::
|
155
|
+
* Handle to an opaque @FT_Incremental handle provided by the client
|
156
|
+
* application.
|
157
|
+
*
|
158
|
+
* glyph_index ::
|
159
|
+
* Index of relevant glyph.
|
160
|
+
*
|
161
|
+
* @output:
|
162
|
+
* adata ::
|
163
|
+
* A structure describing the returned glyph data bytes (which will be
|
164
|
+
* accessed as a read-only byte block).
|
165
|
+
*
|
166
|
+
* @return:
|
167
|
+
* FreeType error code. 0~means success.
|
168
|
+
*
|
169
|
+
* @note:
|
170
|
+
* If this function returns successfully the method
|
171
|
+
* @FT_Incremental_FreeGlyphDataFunc will be called later to release
|
172
|
+
* the data bytes.
|
173
|
+
*
|
174
|
+
* Nested calls to @FT_Incremental_GetGlyphDataFunc can happen for
|
175
|
+
* compound glyphs.
|
176
|
+
*
|
177
|
+
*/
|
178
|
+
typedef FT_Error
|
179
|
+
(*FT_Incremental_GetGlyphDataFunc)( FT_Incremental incremental,
|
180
|
+
FT_UInt glyph_index,
|
181
|
+
FT_Data* adata );
|
182
|
+
|
183
|
+
|
184
|
+
/***************************************************************************
|
185
|
+
*
|
186
|
+
* @type:
|
187
|
+
* FT_Incremental_FreeGlyphDataFunc
|
188
|
+
*
|
189
|
+
* @description:
|
190
|
+
* A function used to release the glyph data bytes returned by a
|
191
|
+
* successful call to @FT_Incremental_GetGlyphDataFunc.
|
192
|
+
*
|
193
|
+
* @input:
|
194
|
+
* incremental ::
|
195
|
+
* A handle to an opaque @FT_Incremental handle provided by the client
|
196
|
+
* application.
|
197
|
+
*
|
198
|
+
* data ::
|
199
|
+
* A structure describing the glyph data bytes (which will be accessed
|
200
|
+
* as a read-only byte block).
|
201
|
+
*
|
202
|
+
*/
|
203
|
+
typedef void
|
204
|
+
(*FT_Incremental_FreeGlyphDataFunc)( FT_Incremental incremental,
|
205
|
+
FT_Data* data );
|
206
|
+
|
207
|
+
|
208
|
+
/***************************************************************************
|
209
|
+
*
|
210
|
+
* @type:
|
211
|
+
* FT_Incremental_GetGlyphMetricsFunc
|
212
|
+
*
|
213
|
+
* @description:
|
214
|
+
* A function used to retrieve the basic metrics of a given glyph index
|
215
|
+
* before accessing its data. This is necessary because, in certain
|
216
|
+
* formats like TrueType, the metrics are stored in a different place from
|
217
|
+
* the glyph images proper.
|
218
|
+
*
|
219
|
+
* @input:
|
220
|
+
* incremental ::
|
221
|
+
* A handle to an opaque @FT_Incremental handle provided by the client
|
222
|
+
* application.
|
223
|
+
*
|
224
|
+
* glyph_index ::
|
225
|
+
* Index of relevant glyph.
|
226
|
+
*
|
227
|
+
* vertical ::
|
228
|
+
* If true, return vertical metrics.
|
229
|
+
*
|
230
|
+
* ametrics ::
|
231
|
+
* This parameter is used for both input and output.
|
232
|
+
* The original glyph metrics, if any, in font units. If metrics are
|
233
|
+
* not available all the values must be set to zero.
|
234
|
+
*
|
235
|
+
* @output:
|
236
|
+
* ametrics ::
|
237
|
+
* The replacement glyph metrics in font units.
|
238
|
+
*
|
239
|
+
*/
|
240
|
+
typedef FT_Error
|
241
|
+
(*FT_Incremental_GetGlyphMetricsFunc)
|
242
|
+
( FT_Incremental incremental,
|
243
|
+
FT_UInt glyph_index,
|
244
|
+
FT_Bool vertical,
|
245
|
+
FT_Incremental_MetricsRec *ametrics );
|
246
|
+
|
247
|
+
|
248
|
+
/**************************************************************************
|
249
|
+
*
|
250
|
+
* @struct:
|
251
|
+
* FT_Incremental_FuncsRec
|
252
|
+
*
|
253
|
+
* @description:
|
254
|
+
* A table of functions for accessing fonts that load data
|
255
|
+
* incrementally. Used in @FT_Incremental_InterfaceRec.
|
256
|
+
*
|
257
|
+
* @fields:
|
258
|
+
* get_glyph_data ::
|
259
|
+
* The function to get glyph data. Must not be null.
|
260
|
+
*
|
261
|
+
* free_glyph_data ::
|
262
|
+
* The function to release glyph data. Must not be null.
|
263
|
+
*
|
264
|
+
* get_glyph_metrics ::
|
265
|
+
* The function to get glyph metrics. May be null if the font does
|
266
|
+
* not provide overriding glyph metrics.
|
267
|
+
*
|
268
|
+
*/
|
269
|
+
typedef struct FT_Incremental_FuncsRec_
|
270
|
+
{
|
271
|
+
FT_Incremental_GetGlyphDataFunc get_glyph_data;
|
272
|
+
FT_Incremental_FreeGlyphDataFunc free_glyph_data;
|
273
|
+
FT_Incremental_GetGlyphMetricsFunc get_glyph_metrics;
|
274
|
+
|
275
|
+
} FT_Incremental_FuncsRec;
|
276
|
+
|
277
|
+
|
278
|
+
/***************************************************************************
|
279
|
+
*
|
280
|
+
* @struct:
|
281
|
+
* FT_Incremental_InterfaceRec
|
282
|
+
*
|
283
|
+
* @description:
|
284
|
+
* A structure to be used with @FT_Open_Face to indicate that the user
|
285
|
+
* wants to support incremental glyph loading. You should use it with
|
286
|
+
* @FT_PARAM_TAG_INCREMENTAL as in the following example:
|
287
|
+
*
|
288
|
+
* {
|
289
|
+
* FT_Incremental_InterfaceRec inc_int;
|
290
|
+
* FT_Parameter parameter;
|
291
|
+
* FT_Open_Args open_args;
|
292
|
+
*
|
293
|
+
*
|
294
|
+
* // set up incremental descriptor
|
295
|
+
* inc_int.funcs = my_funcs;
|
296
|
+
* inc_int.object = my_object;
|
297
|
+
*
|
298
|
+
* // set up optional parameter
|
299
|
+
* parameter.tag = FT_PARAM_TAG_INCREMENTAL;
|
300
|
+
* parameter.data = &inc_int;
|
301
|
+
*
|
302
|
+
* // set up FT_Open_Args structure
|
303
|
+
* open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS;
|
304
|
+
* open_args.pathname = my_font_pathname;
|
305
|
+
* open_args.num_params = 1;
|
306
|
+
* open_args.params = ¶meter; // we use one optional argument
|
307
|
+
*
|
308
|
+
* // open the font
|
309
|
+
* error = FT_Open_Face( library, &open_args, index, &face );
|
310
|
+
* ...
|
311
|
+
* }
|
312
|
+
*
|
313
|
+
*/
|
314
|
+
typedef struct FT_Incremental_InterfaceRec_
|
315
|
+
{
|
316
|
+
const FT_Incremental_FuncsRec* funcs;
|
317
|
+
FT_Incremental object;
|
318
|
+
|
319
|
+
} FT_Incremental_InterfaceRec;
|
320
|
+
|
321
|
+
|
322
|
+
/***************************************************************************
|
323
|
+
*
|
324
|
+
* @type:
|
325
|
+
* FT_Incremental_Interface
|
326
|
+
*
|
327
|
+
* @description:
|
328
|
+
* A pointer to an @FT_Incremental_InterfaceRec structure.
|
329
|
+
*
|
330
|
+
*/
|
331
|
+
typedef FT_Incremental_InterfaceRec* FT_Incremental_Interface;
|
332
|
+
|
333
|
+
|
334
|
+
/***************************************************************************
|
335
|
+
*
|
336
|
+
* @constant:
|
337
|
+
* FT_PARAM_TAG_INCREMENTAL
|
338
|
+
*
|
339
|
+
* @description:
|
340
|
+
* A constant used as the tag of @FT_Parameter structures to indicate
|
341
|
+
* an incremental loading object to be used by FreeType.
|
342
|
+
*
|
343
|
+
*/
|
344
|
+
#define FT_PARAM_TAG_INCREMENTAL FT_MAKE_TAG( 'i', 'n', 'c', 'r' )
|
345
|
+
|
346
|
+
/* */
|
347
|
+
|
348
|
+
FT_END_HEADER
|
349
|
+
|
350
|
+
#endif /* __FTINCREM_H__ */
|
351
|
+
|
352
|
+
|
353
|
+
/* END */
|
@@ -0,0 +1,213 @@
|
|
1
|
+
/***************************************************************************/
|
2
|
+
/* */
|
3
|
+
/* ftlcdfil.h */
|
4
|
+
/* */
|
5
|
+
/* FreeType API for color filtering of subpixel bitmap glyphs */
|
6
|
+
/* (specification). */
|
7
|
+
/* */
|
8
|
+
/* Copyright 2006, 2007, 2008, 2010 by */
|
9
|
+
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
10
|
+
/* */
|
11
|
+
/* This file is part of the FreeType project, and may only be used, */
|
12
|
+
/* modified, and distributed under the terms of the FreeType project */
|
13
|
+
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
14
|
+
/* this file you indicate that you have read the license and */
|
15
|
+
/* understand and accept it fully. */
|
16
|
+
/* */
|
17
|
+
/***************************************************************************/
|
18
|
+
|
19
|
+
|
20
|
+
#ifndef __FT_LCD_FILTER_H__
|
21
|
+
#define __FT_LCD_FILTER_H__
|
22
|
+
|
23
|
+
#include <ft2build.h>
|
24
|
+
#include FT_FREETYPE_H
|
25
|
+
|
26
|
+
#ifdef FREETYPE_H
|
27
|
+
#error "freetype.h of FreeType 1 has been loaded!"
|
28
|
+
#error "Please fix the directory search order for header files"
|
29
|
+
#error "so that freetype.h of FreeType 2 is found first."
|
30
|
+
#endif
|
31
|
+
|
32
|
+
|
33
|
+
FT_BEGIN_HEADER
|
34
|
+
|
35
|
+
/***************************************************************************
|
36
|
+
*
|
37
|
+
* @section:
|
38
|
+
* lcd_filtering
|
39
|
+
*
|
40
|
+
* @title:
|
41
|
+
* LCD Filtering
|
42
|
+
*
|
43
|
+
* @abstract:
|
44
|
+
* Reduce color fringes of LCD-optimized bitmaps.
|
45
|
+
*
|
46
|
+
* @description:
|
47
|
+
* The @FT_Library_SetLcdFilter API can be used to specify a low-pass
|
48
|
+
* filter which is then applied to LCD-optimized bitmaps generated
|
49
|
+
* through @FT_Render_Glyph. This is useful to reduce color fringes
|
50
|
+
* which would occur with unfiltered rendering.
|
51
|
+
*
|
52
|
+
* Note that no filter is active by default, and that this function is
|
53
|
+
* *not* implemented in default builds of the library. You need to
|
54
|
+
* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING in your `ftoption.h' file
|
55
|
+
* in order to activate it.
|
56
|
+
*/
|
57
|
+
|
58
|
+
|
59
|
+
/****************************************************************************
|
60
|
+
*
|
61
|
+
* @enum:
|
62
|
+
* FT_LcdFilter
|
63
|
+
*
|
64
|
+
* @description:
|
65
|
+
* A list of values to identify various types of LCD filters.
|
66
|
+
*
|
67
|
+
* @values:
|
68
|
+
* FT_LCD_FILTER_NONE ::
|
69
|
+
* Do not perform filtering. When used with subpixel rendering, this
|
70
|
+
* results in sometimes severe color fringes.
|
71
|
+
*
|
72
|
+
* FT_LCD_FILTER_DEFAULT ::
|
73
|
+
* The default filter reduces color fringes considerably, at the cost
|
74
|
+
* of a slight blurriness in the output.
|
75
|
+
*
|
76
|
+
* FT_LCD_FILTER_LIGHT ::
|
77
|
+
* The light filter is a variant that produces less blurriness at the
|
78
|
+
* cost of slightly more color fringes than the default one. It might
|
79
|
+
* be better, depending on taste, your monitor, or your personal vision.
|
80
|
+
*
|
81
|
+
* FT_LCD_FILTER_LEGACY ::
|
82
|
+
* This filter corresponds to the original libXft color filter. It
|
83
|
+
* provides high contrast output but can exhibit really bad color
|
84
|
+
* fringes if glyphs are not extremely well hinted to the pixel grid.
|
85
|
+
* In other words, it only works well if the TrueType bytecode
|
86
|
+
* interpreter is enabled *and* high-quality hinted fonts are used.
|
87
|
+
*
|
88
|
+
* This filter is only provided for comparison purposes, and might be
|
89
|
+
* disabled or stay unsupported in the future.
|
90
|
+
*
|
91
|
+
* @since:
|
92
|
+
* 2.3.0
|
93
|
+
*/
|
94
|
+
typedef enum FT_LcdFilter_
|
95
|
+
{
|
96
|
+
FT_LCD_FILTER_NONE = 0,
|
97
|
+
FT_LCD_FILTER_DEFAULT = 1,
|
98
|
+
FT_LCD_FILTER_LIGHT = 2,
|
99
|
+
FT_LCD_FILTER_LEGACY = 16,
|
100
|
+
|
101
|
+
FT_LCD_FILTER_MAX /* do not remove */
|
102
|
+
|
103
|
+
} FT_LcdFilter;
|
104
|
+
|
105
|
+
|
106
|
+
/**************************************************************************
|
107
|
+
*
|
108
|
+
* @func:
|
109
|
+
* FT_Library_SetLcdFilter
|
110
|
+
*
|
111
|
+
* @description:
|
112
|
+
* This function is used to apply color filtering to LCD decimated
|
113
|
+
* bitmaps, like the ones used when calling @FT_Render_Glyph with
|
114
|
+
* @FT_RENDER_MODE_LCD or @FT_RENDER_MODE_LCD_V.
|
115
|
+
*
|
116
|
+
* @input:
|
117
|
+
* library ::
|
118
|
+
* A handle to the target library instance.
|
119
|
+
*
|
120
|
+
* filter ::
|
121
|
+
* The filter type.
|
122
|
+
*
|
123
|
+
* You can use @FT_LCD_FILTER_NONE here to disable this feature, or
|
124
|
+
* @FT_LCD_FILTER_DEFAULT to use a default filter that should work
|
125
|
+
* well on most LCD screens.
|
126
|
+
*
|
127
|
+
* @return:
|
128
|
+
* FreeType error code. 0~means success.
|
129
|
+
*
|
130
|
+
* @note:
|
131
|
+
* This feature is always disabled by default. Clients must make an
|
132
|
+
* explicit call to this function with a `filter' value other than
|
133
|
+
* @FT_LCD_FILTER_NONE in order to enable it.
|
134
|
+
*
|
135
|
+
* Due to *PATENTS* covering subpixel rendering, this function doesn't
|
136
|
+
* do anything except returning `FT_Err_Unimplemented_Feature' if the
|
137
|
+
* configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not
|
138
|
+
* defined in your build of the library, which should correspond to all
|
139
|
+
* default builds of FreeType.
|
140
|
+
*
|
141
|
+
* The filter affects glyph bitmaps rendered through @FT_Render_Glyph,
|
142
|
+
* @FT_Outline_Get_Bitmap, @FT_Load_Glyph, and @FT_Load_Char.
|
143
|
+
*
|
144
|
+
* It does _not_ affect the output of @FT_Outline_Render and
|
145
|
+
* @FT_Outline_Get_Bitmap.
|
146
|
+
*
|
147
|
+
* If this feature is activated, the dimensions of LCD glyph bitmaps are
|
148
|
+
* either larger or taller than the dimensions of the corresponding
|
149
|
+
* outline with regards to the pixel grid. For example, for
|
150
|
+
* @FT_RENDER_MODE_LCD, the filter adds up to 3~pixels to the left, and
|
151
|
+
* up to 3~pixels to the right.
|
152
|
+
*
|
153
|
+
* The bitmap offset values are adjusted correctly, so clients shouldn't
|
154
|
+
* need to modify their layout and glyph positioning code when enabling
|
155
|
+
* the filter.
|
156
|
+
*
|
157
|
+
* @since:
|
158
|
+
* 2.3.0
|
159
|
+
*/
|
160
|
+
FT_EXPORT( FT_Error )
|
161
|
+
FT_Library_SetLcdFilter( FT_Library library,
|
162
|
+
FT_LcdFilter filter );
|
163
|
+
|
164
|
+
|
165
|
+
/**************************************************************************
|
166
|
+
*
|
167
|
+
* @func:
|
168
|
+
* FT_Library_SetLcdFilterWeights
|
169
|
+
*
|
170
|
+
* @description:
|
171
|
+
* Use this function to override the filter weights selected by
|
172
|
+
* @FT_Library_SetLcdFilter. By default, FreeType uses the quintuple
|
173
|
+
* (0x00, 0x55, 0x56, 0x55, 0x00) for FT_LCD_FILTER_LIGHT, and (0x10,
|
174
|
+
* 0x40, 0x70, 0x40, 0x10) for FT_LCD_FILTER_DEFAULT and
|
175
|
+
* FT_LCD_FILTER_LEGACY.
|
176
|
+
*
|
177
|
+
* @input:
|
178
|
+
* library ::
|
179
|
+
* A handle to the target library instance.
|
180
|
+
*
|
181
|
+
* weights ::
|
182
|
+
* A pointer to an array; the function copies the first five bytes and
|
183
|
+
* uses them to specify the filter weights.
|
184
|
+
*
|
185
|
+
* @return:
|
186
|
+
* FreeType error code. 0~means success.
|
187
|
+
*
|
188
|
+
* @note:
|
189
|
+
* Due to *PATENTS* covering subpixel rendering, this function doesn't
|
190
|
+
* do anything except returning `FT_Err_Unimplemented_Feature' if the
|
191
|
+
* configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not
|
192
|
+
* defined in your build of the library, which should correspond to all
|
193
|
+
* default builds of FreeType.
|
194
|
+
*
|
195
|
+
* This function must be called after @FT_Library_SetLcdFilter to have
|
196
|
+
* any effect.
|
197
|
+
*
|
198
|
+
* @since:
|
199
|
+
* 2.4.0
|
200
|
+
*/
|
201
|
+
FT_EXPORT( FT_Error )
|
202
|
+
FT_Library_SetLcdFilterWeights( FT_Library library,
|
203
|
+
unsigned char *weights );
|
204
|
+
|
205
|
+
/* */
|
206
|
+
|
207
|
+
|
208
|
+
FT_END_HEADER
|
209
|
+
|
210
|
+
#endif /* __FT_LCD_FILTER_H__ */
|
211
|
+
|
212
|
+
|
213
|
+
/* END */
|